home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 0a 25 20 54 75 74 6f | 72 69 61 6c 00 01 52 4d |%.% Tuto|rial..RM|
|00000010| 00 02 a4 26 00 00 07 9f | 00 00 07 ee 74 74 69 6e |...&....|....ttin|
|00000020| 67 20 70 72 6f 67 72 61 | 6d 2c 20 66 6f 72 20 4c |g progra|m, for L|
|00000030| 61 54 65 58 20 75 73 65 | 72 73 0a 25 20 44 61 76 |aTeX use|rs.% Dav|
|00000040| 69 64 20 4b 6f 74 7a 0a | 25 20 44 75 6b 65 20 55 |id Kotz.|% Duke U|
|00000050| 6e 69 76 65 72 73 69 74 | 79 20 43 6f 6d 70 75 74 |niversit|y Comput|
|00000060| 65 72 20 53 63 69 65 6e | 63 65 20 44 65 70 61 72 |er Scien|ce Depar|
|00000070| 74 6d 65 6e 74 0a 25 0a | 25 20 4e 4f 54 45 3a 20 |tment.%.|% NOTE: |
|00000080| 49 66 20 4c 61 54 65 58 | 20 72 75 6e 73 20 6f 75 |If LaTeX| runs ou|
|00000090| 74 20 6f 66 20 6d 65 6d | 6f 72 79 20 70 72 6f 63 |t of mem|ory proc|
|000000a0| 65 73 73 69 6e 67 20 70 | 6c 6f 74 73 2c 0a 25 20 |essing p|lots,.% |
|000000b0| 61 64 64 20 60 60 77 69 | 74 68 20 6c 69 6e 65 73 |add ``wi|th lines|
|000000c0| 20 34 27 27 20 74 6f 20 | 65 61 63 68 20 63 75 72 | 4'' to |each cur|
|000000d0| 76 65 20 69 6e 20 65 67 | 2a 2e 70 6c 74 20 61 6e |ve in eg|*.plt an|
|000000e0| 64 20 72 65 72 75 6e 20 | 6d 61 6b 65 2e 0a 25 0a |d rerun |make..%.|
|000000f0| 0a 25 20 73 6f 6d 65 20 | 68 65 61 64 65 72 20 69 |.% some |header i|
|00000100| 6e 66 6f 0a 5c 69 6e 70 | 75 74 7b 68 65 61 64 65 |nfo.\inp|ut{heade|
|00000110| 72 7d 0a 0a 5c 62 65 67 | 69 6e 7b 64 6f 63 75 6d |r}..\beg|in{docum|
|00000120| 65 6e 74 7d 0a 0a 5c 74 | 69 74 6c 65 7b 5c 4c 61 |ent}..\t|itle{\La|
|00000130| 54 65 58 5c 20 61 6e 64 | 20 74 68 65 20 47 4e 55 |TeX\ and| the GNU|
|00000140| 50 4c 4f 54 20 50 6c 6f | 74 74 69 6e 67 0a 50 72 |PLOT Plo|tting.Pr|
|00000150| 6f 67 72 61 6d 5c 74 68 | 61 6e 6b 73 7b 54 68 69 |ogram\th|anks{Thi|
|00000160| 73 20 64 6f 63 75 6d 65 | 6e 74 20 64 65 73 63 72 |s docume|nt descr|
|00000170| 69 62 65 73 20 47 4e 55 | 50 4c 4f 54 20 76 65 72 |ibes GNU|PLOT ver|
|00000180| 73 69 6f 6e 20 33 2e 30 | 2e 20 41 6c 6c 20 70 6c |sion 3.0|. All pl|
|00000190| 6f 74 73 0a 69 6e 20 74 | 68 69 73 20 64 6f 63 75 |ots.in t|his docu|
|000001a0| 6d 65 6e 74 20 77 65 72 | 65 20 6d 61 64 65 20 77 |ment wer|e made w|
|000001b0| 69 74 68 20 74 68 61 74 | 20 76 65 72 73 69 6f 6e |ith that| version|
|000001c0| 20 6f 66 20 47 4e 55 50 | 4c 4f 54 2e 7d 20 7d 0a | of GNUP|LOT.} }.|
|000001d0| 5c 61 75 74 68 6f 72 7b | 44 61 76 69 64 20 4b 6f |\author{|David Ko|
|000001e0| 74 7a 7d 0a 5c 64 61 74 | 65 7b 4a 75 6c 79 20 33 |tz}.\dat|e{July 3|
|000001f0| 2c 20 31 39 39 31 7d 0a | 0a 5c 6d 61 6b 65 74 69 |, 1991}.|.\maketi|
|00000200| 74 6c 65 0a 0a 5c 70 61 | 67 65 73 74 79 6c 65 7b |tle..\pa|gestyle{|
|00000210| 6d 79 68 65 61 64 69 6e | 67 73 7d 0a 5c 6d 61 72 |myheadin|gs}.\mar|
|00000220| 6b 72 69 67 68 74 7b 47 | 4e 55 50 4c 4f 54 20 5c |kright{G|NUPLOT \|
|00000230| 4c 61 54 65 58 5c 20 54 | 75 74 6f 72 69 61 6c 20 |LaTeX\ T|utorial |
|00000240| 56 65 72 73 69 6f 6e 20 | 33 2e 30 7d 0a 0a 5c 63 |Version |3.0}..\c|
|00000250| 75 72 72 65 6e 74 73 70 | 61 63 65 20 25 20 64 65 |urrentsp|ace % de|
|00000260| 66 69 6e 65 64 20 69 6e | 20 68 65 61 64 65 72 2e |fined in| header.|
|00000270| 74 65 78 0a 0a 5c 73 65 | 63 74 69 6f 6e 7b 49 6e |tex..\se|ction{In|
|00000280| 74 72 6f 64 75 63 74 69 | 6f 6e 20 61 6e 64 20 48 |troducti|on and H|
|00000290| 69 73 74 6f 72 79 7d 0a | 0a 47 4e 55 50 4c 4f 54 |istory}.|.GNUPLOT|
|000002a0| 20 77 61 73 20 6f 72 69 | 67 69 6e 61 6c 6c 79 20 | was ori|ginally |
|000002b0| 64 65 76 65 6c 6f 70 65 | 64 20 62 79 20 43 6f 6c |develope|d by Col|
|000002c0| 69 6e 20 4b 65 6c 6c 65 | 79 20 61 6e 64 20 54 68 |in Kelle|y and Th|
|000002d0| 6f 6d 61 73 20 57 69 6c | 6c 69 61 6d 73 0a 69 6e |omas Wil|liams.in|
|000002e0| 20 31 39 38 36 20 74 6f | 20 70 6c 6f 74 20 66 75 | 1986 to| plot fu|
|000002f0| 6e 63 74 69 6f 6e 73 20 | 61 6e 64 20 64 61 74 61 |nctions |and data|
|00000300| 20 66 69 6c 65 73 20 6f | 6e 20 61 20 76 61 72 69 | files o|n a vari|
|00000310| 65 74 79 20 6f 66 20 74 | 65 72 6d 69 6e 61 6c 73 |ety of t|erminals|
|00000320| 2e 0a 49 6e 20 31 39 38 | 38 20 61 6e 64 20 31 39 |..In 198|8 and 19|
|00000330| 38 39 20 49 20 63 72 65 | 61 74 65 64 20 61 6e 20 |89 I cre|ated an |
|00000340| 61 6c 74 65 72 6e 61 74 | 65 20 76 65 72 73 69 6f |alternat|e versio|
|00000350| 6e 2c 20 6b 6e 6f 77 6e | 20 61 73 20 47 6e 75 5c |n, known| as Gnu\|
|00000360| 54 65 58 2c 0a 74 68 61 | 74 20 73 75 70 70 6f 72 |TeX,.tha|t suppor|
|00000370| 74 65 64 20 61 20 6e 65 | 77 20 60 60 74 65 72 6d |ted a ne|w ``term|
|00000380| 69 6e 61 6c 20 74 79 70 | 65 27 27 20 63 61 6c 6c |inal typ|e'' call|
|00000390| 65 64 20 7b 5c 74 74 20 | 6c 61 74 65 78 7d 2c 20 |ed {\tt |latex}, |
|000003a0| 73 6f 20 67 6e 75 70 6c | 6f 74 0a 77 6f 75 6c 64 |so gnupl|ot.would|
|000003b0| 20 6f 75 74 70 75 74 20 | 5c 4c 61 54 65 58 5c 20 | output |\LaTeX\ |
|000003c0| 63 6f 64 65 2e 20 54 68 | 65 20 70 6c 6f 74 20 63 |code. Th|e plot c|
|000003d0| 6f 75 6c 64 20 74 68 65 | 6e 20 62 65 20 69 6e 63 |ould the|n be inc|
|000003e0| 6c 75 64 65 64 20 69 6e | 20 61 0a 5c 4c 61 54 65 |luded in| a.\LaTe|
|000003f0| 58 5c 20 64 6f 63 75 6d | 65 6e 74 2e 20 49 20 61 |X\ docum|ent. I a|
|00000400| 64 64 65 64 20 61 20 6e | 75 6d 62 65 72 20 6f 66 |dded a n|umber of|
|00000410| 20 65 6d 62 65 6c 6c 69 | 73 68 6d 65 6e 74 73 2c | embelli|shments,|
|00000420| 20 73 75 70 70 6f 72 74 | 65 64 20 6f 6e 6c 79 0a | support|ed only.|
|00000430| 62 79 20 74 68 65 20 7b | 5c 74 74 20 6c 61 74 65 |by the {|\tt late|
|00000440| 78 7d 20 74 65 72 6d 69 | 6e 61 6c 2c 20 61 6c 6c |x} termi|nal, all|
|00000450| 6f 77 69 6e 67 20 74 68 | 65 20 75 73 65 72 20 74 |owing th|e user t|
|00000460| 6f 20 70 72 6f 64 75 63 | 65 0a 70 75 62 6c 69 63 |o produc|e.public|
|00000470| 61 74 69 6f 6e 2d 71 75 | 61 6c 69 74 79 20 70 6c |ation-qu|ality pl|
|00000480| 6f 74 73 2e 0a 0a 49 6e | 20 6c 61 74 65 20 31 39 |ots...In| late 19|
|00000490| 38 39 20 61 6e 64 20 65 | 61 72 6c 79 20 31 39 39 |89 and e|arly 199|
|000004a0| 30 20 47 6e 75 5c 54 65 | 58 5c 20 61 6e 64 20 61 |0 Gnu\Te|X\ and a|
|000004b0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6f 74 68 65 72 | number |of other|
|000004c0| 20 47 4e 55 50 4c 4f 54 | 0a 76 61 72 69 61 6e 74 | GNUPLOT|.variant|
|000004d0| 73 20 77 65 72 65 20 6d | 65 72 67 65 64 20 74 6f |s were m|erged to|
|000004e0| 67 65 74 68 65 72 20 69 | 6e 74 6f 20 61 20 6e 65 |gether i|nto a ne|
|000004f0| 77 20 72 65 6c 65 61 73 | 65 20 6f 66 20 47 4e 55 |w releas|e of GNU|
|00000500| 50 4c 4f 54 2c 20 32 2e | 30 2e 20 54 68 69 73 0a |PLOT, 2.|0. This.|
|00000510| 69 6e 63 6c 75 64 65 73 | 2c 20 61 6d 6f 6e 67 20 |includes|, among |
|00000520| 6d 61 6e 79 20 6f 74 68 | 65 72 20 69 6d 70 72 6f |many oth|er impro|
|00000530| 76 65 6d 65 6e 74 73 2c | 20 61 20 5c 4c 61 54 65 |vements,| a \LaTe|
|00000540| 58 5c 20 64 72 69 76 65 | 72 20 64 65 72 69 76 65 |X\ drive|r derive|
|00000550| 64 20 66 72 6f 6d 0a 74 | 68 65 20 6f 6e 65 20 69 |d from.t|he one i|
|00000560| 6e 20 47 6e 75 5c 54 65 | 58 2e 20 46 6f 72 6d 65 |n Gnu\Te|X. Forme|
|00000570| 72 20 47 6e 75 5c 54 65 | 58 5c 20 75 73 65 72 73 |r Gnu\Te|X\ users|
|00000580| 20 61 72 65 20 72 65 66 | 65 72 72 65 64 20 74 6f | are ref|erred to|
|00000590| 0a 53 65 63 74 69 6f 6e | 7e 5c 72 65 66 7b 6f 6c |.Section|~\ref{ol|
|000005a0| 64 75 73 65 72 73 7d 20 | 66 6f 72 20 69 6e 66 6f |dusers} |for info|
|000005b0| 72 6d 61 74 69 6f 6e 20 | 61 62 6f 75 74 20 61 64 |rmation |about ad|
|000005c0| 61 70 74 69 6e 67 20 74 | 6f 20 47 4e 55 50 4c 4f |apting t|o GNUPLO|
|000005d0| 54 2e 0a 41 6e 79 6f 6e | 65 20 69 6e 74 65 72 65 |T..Anyon|e intere|
|000005e0| 73 74 65 64 20 69 6e 20 | 75 73 69 6e 67 20 47 4e |sted in |using GN|
|000005f0| 55 50 4c 4f 54 20 77 69 | 74 68 20 5c 4c 61 54 65 |UPLOT wi|th \LaTe|
|00000600| 58 5c 20 73 68 6f 75 6c | 64 20 72 65 61 64 20 74 |X\ shoul|d read t|
|00000610| 68 65 20 6e 65 78 74 0a | 73 65 63 74 69 6f 6e 2c |he next.|section,|
|00000620| 20 61 20 74 75 74 6f 72 | 69 61 6c 2c 20 61 6e 64 | a tutor|ial, and|
|00000630| 20 74 68 65 20 70 72 69 | 6d 61 72 79 20 47 4e 55 | the pri|mary GNU|
|00000640| 50 4c 4f 54 20 6d 61 6e | 75 61 6c 2e 0a 0a 54 68 |PLOT man|ual...Th|
|00000650| 65 20 72 65 61 64 65 72 | 20 73 68 6f 75 6c 64 20 |e reader| should |
|00000660| 6e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 5c 4c |note tha|t the \L|
|00000670| 61 54 65 58 5c 20 70 69 | 63 74 75 72 65 20 65 6e |aTeX\ pi|cture en|
|00000680| 76 69 72 6f 6e 6d 65 6e | 74 73 20 6f 75 74 70 75 |vironmen|ts outpu|
|00000690| 74 20 62 79 0a 47 4e 55 | 50 4c 4f 54 20 63 61 6e |t by.GNU|PLOT can|
|000006a0| 20 62 65 20 71 75 69 74 | 65 20 6c 61 72 67 65 20 | be quit|e large |
|000006b0| 61 6e 64 20 63 6f 6d 70 | 6c 69 63 61 74 65 64 2c |and comp|licated,|
|000006c0| 20 61 6e 64 20 63 61 6e | 20 65 61 73 69 6c 79 20 | and can| easily |
|000006d0| 65 78 63 65 65 64 20 74 | 68 65 0a 6d 65 6d 6f 72 |exceed t|he.memor|
|000006e0| 79 20 63 61 70 61 63 69 | 74 79 20 6f 66 20 5c 54 |y capaci|ty of \T|
|000006f0| 65 58 2e 20 49 66 20 61 | 6e 20 65 6e 6c 61 72 67 |eX. If a|n enlarg|
|00000700| 65 64 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 5c 54 |ed versi|on of \T|
|00000710| 65 58 5c 20 69 73 20 61 | 76 61 69 6c 61 62 6c 65 |eX\ is a|vailable|
|00000720| 2c 0a 69 74 20 69 73 20 | 77 69 73 65 20 74 6f 20 |,.it is |wise to |
|00000730| 75 73 65 20 69 74 2e 20 | 4f 74 68 65 72 77 69 73 |use it. |Otherwis|
|00000740| 65 2c 20 6b 65 65 70 20 | 79 6f 75 72 20 70 6c 6f |e, keep |your plo|
|00000750| 74 73 20 73 69 6d 70 6c | 65 20 61 6e 64 20 61 64 |ts simpl|e and ad|
|00000760| 64 0a 5c 76 65 72 62 2b | 5c 63 6c 65 61 72 70 61 |d.\verb+|\clearpa|
|00000770| 67 65 2b 20 74 6f 20 79 | 6f 75 72 20 64 6f 63 75 |ge+ to y|our docu|
|00000780| 6d 65 6e 74 20 77 68 65 | 72 65 20 6e 65 63 65 73 |ment whe|re neces|
|00000790| 73 61 72 79 2e 0a 0a 54 | 68 65 72 65 20 69 73 20 |sary...T|here is |
|000007a0| 61 6c 73 6f 20 61 20 6e | 65 77 20 45 45 50 49 43 |also a n|ew EEPIC|
|000007b0| 20 64 72 69 76 65 72 20 | 28 7b 5c 74 74 20 65 65 | driver |({\tt ee|
|000007c0| 70 69 63 7d 29 2c 20 69 | 6e 74 65 6e 64 65 64 20 |pic}), i|ntended |
|000007d0| 66 6f 72 20 75 73 65 20 | 77 69 74 68 0a 74 68 65 |for use |with.the|
|000007e0| 20 45 45 50 49 43 20 6d | 61 63 72 6f 20 70 61 63 | EEPIC m|acro pac|
|000007f0| 6b 61 67 65 20 66 6f 72 | 20 5c 4c 61 54 65 58 2e |kage for| \LaTeX.|
|00000800| 20 45 45 50 49 43 20 61 | 6c 6c 6f 77 73 20 66 6f | EEPIC a|llows fo|
|00000810| 72 20 6d 75 63 68 20 6d | 6f 72 65 0a 65 66 66 69 |r much m|ore.effi|
|00000820| 63 69 65 6e 74 20 6c 69 | 6e 65 2d 64 72 61 77 69 |cient li|ne-drawi|
|00000830| 6e 67 2c 20 72 75 6e 73 | 20 74 68 72 6f 75 67 68 |ng, runs| through|
|00000840| 20 5c 4c 61 54 65 58 5c | 20 66 61 73 74 65 72 2c | \LaTeX\| faster,|
|00000850| 20 61 6e 64 20 75 73 65 | 73 20 6c 65 73 73 0a 6d | and use|s less.m|
|00000860| 65 6d 6f 72 79 2e 20 20 | 53 65 65 20 53 65 63 74 |emory. |See Sect|
|00000870| 69 6f 6e 7e 5c 72 65 66 | 7b 73 3a 65 65 70 69 63 |ion~\ref|{s:eepic|
|00000880| 7d 20 66 6f 72 20 6d 6f | 72 65 20 69 6e 66 6f 72 |} for mo|re infor|
|00000890| 6d 61 74 69 6f 6e 2e 0a | 0a 54 68 65 72 65 20 69 |mation..|.There i|
|000008a0| 73 20 61 20 73 6d 61 6c | 6c 20 70 61 63 6b 61 67 |s a smal|l packag|
|000008b0| 65 20 6f 66 20 61 75 78 | 69 6c 69 61 72 79 20 66 |e of aux|iliary f|
|000008c0| 69 6c 65 73 20 28 6d 61 | 6b 65 66 69 6c 65 73 20 |iles (ma|kefiles |
|000008d0| 61 6e 64 20 73 63 72 69 | 70 74 73 29 0a 74 68 61 |and scri|pts).tha|
|000008e0| 74 20 49 20 66 69 6e 64 | 20 75 73 65 66 75 6c 20 |t I find| useful |
|000008f0| 66 6f 72 20 6d 61 6b 69 | 6e 67 20 5c 4c 61 54 65 |for maki|ng \LaTe|
|00000900| 58 5c 20 70 6c 6f 74 73 | 20 77 69 74 68 20 47 4e |X\ plots| with GN|
|00000910| 55 50 4c 4f 54 2e 20 54 | 68 69 73 20 69 73 0a 61 |UPLOT. T|his is.a|
|00000920| 76 61 69 6c 61 62 6c 65 | 20 66 6f 72 20 5c 76 65 |vailable| for \ve|
|00000930| 72 62 2b 66 74 70 2b 20 | 61 73 20 5c 76 65 72 62 |rb+ftp+ |as \verb|
|00000940| 2b 70 75 62 2f 67 6e 75 | 70 6c 6f 74 2d 6c 61 74 |+pub/gnu|plot-lat|
|00000950| 65 78 2e 73 68 61 72 2b | 20 66 72 6f 6d 0a 5c 76 |ex.shar+| from.\v|
|00000960| 65 72 62 2b 63 73 2e 64 | 75 6b 65 2e 65 64 75 2b |erb+cs.d|uke.edu+|
|00000970| 2e 20 49 20 63 61 6e 20 | 6d 61 69 6c 20 63 6f 70 |. I can |mail cop|
|00000980| 69 65 73 20 28 73 65 65 | 20 74 68 65 20 65 6e 64 |ies (see| the end|
|00000990| 20 6f 66 20 74 68 69 73 | 20 70 61 70 65 72 20 66 | of this| paper f|
|000009a0| 6f 72 0a 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 29 2e |or.infor|mation).|
|000009b0| 0a 0a 5c 73 65 63 74 69 | 6f 6e 7b 55 73 69 6e 67 |..\secti|on{Using|
|000009c0| 20 47 4e 55 50 4c 4f 54 | 20 66 6f 72 20 5c 4c 61 | GNUPLOT| for \La|
|000009d0| 54 65 58 3a 20 61 20 54 | 75 74 6f 72 69 61 6c 7d |TeX: a T|utorial}|
|000009e0| 0a 0a 47 4e 55 50 4c 4f | 54 20 69 73 20 62 79 20 |..GNUPLO|T is by |
|000009f0| 6e 61 74 75 72 65 20 61 | 6e 20 69 6e 74 65 72 61 |nature a|n intera|
|00000a00| 63 74 69 76 65 20 70 72 | 6f 67 72 61 6d 2e 20 55 |ctive pr|ogram. U|
|00000a10| 73 65 72 73 20 6d 61 6b | 69 6e 67 20 70 6c 6f 74 |sers mak|ing plot|
|00000a20| 73 20 66 6f 72 0a 5c 4c | 61 54 65 58 5c 20 77 69 |s for.\L|aTeX\ wi|
|00000a30| 6c 6c 20 67 65 6e 65 72 | 61 6c 6c 79 20 6e 6f 74 |ll gener|ally not|
|00000a40| 20 75 73 65 20 47 4e 55 | 50 4c 4f 54 20 69 6e 74 | use GNU|PLOT int|
|00000a50| 65 72 61 63 74 69 76 65 | 6c 79 2e 20 20 57 68 65 |eractive|ly. Whe|
|00000a60| 6e 65 76 65 72 20 68 61 | 72 64 0a 63 6f 70 79 20 |never ha|rd.copy |
|00000a70| 69 73 20 64 65 73 69 72 | 65 64 20 66 72 6f 6d 20 |is desir|ed from |
|00000a80| 47 4e 55 50 4c 4f 54 2c | 20 74 68 65 20 70 72 6f |GNUPLOT,| the pro|
|00000a90| 67 72 61 6d 20 6e 65 65 | 64 20 6e 6f 74 20 62 65 |gram nee|d not be|
|00000aa0| 20 72 75 6e 20 6f 6e 20 | 61 0a 67 72 61 70 68 69 | run on |a.graphi|
|00000ab0| 63 73 20 74 65 72 6d 69 | 6e 61 6c 2e 20 49 6e 20 |cs termi|nal. In |
|00000ac0| 74 68 69 73 20 63 61 73 | 65 20 74 68 65 20 6f 75 |this cas|e the ou|
|00000ad0| 74 70 75 74 20 69 73 20 | 64 69 72 65 63 74 65 64 |tput is |directed|
|00000ae0| 20 74 6f 20 61 20 66 69 | 6c 65 20 6f 72 0a 70 69 | to a fi|le or.pi|
|00000af0| 70 65 2c 20 74 68 65 6e | 20 73 65 6e 74 20 74 6f |pe, then| sent to|
|00000b00| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate|
|00000b10| 20 6f 75 74 70 75 74 20 | 64 65 76 69 63 65 2e 20 | output |device. |
|00000b20| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 6f 75 74 |For exam|ple, out|
|00000b30| 70 75 74 0a 66 72 6f 6d | 20 74 68 65 20 74 65 72 |put.from| the ter|
|00000b40| 6d 69 6e 61 6c 20 74 79 | 70 65 20 7b 5c 74 74 20 |minal ty|pe {\tt |
|00000b50| 75 6e 69 78 70 6c 6f 74 | 7d 20 6d 61 79 20 62 65 |unixplot|} may be|
|00000b60| 20 73 65 6e 74 20 74 6f | 20 61 20 70 72 6f 67 72 | sent to| a progr|
|00000b70| 61 6d 0a 69 6e 74 65 72 | 70 72 65 74 69 6e 67 20 |am.inter|preting |
|00000b80| 74 68 65 20 55 6e 69 78 | 20 70 6c 6f 74 74 69 6e |the Unix| plottin|
|00000b90| 67 20 73 74 61 6e 64 61 | 72 64 2e 20 54 68 65 20 |g standa|rd. The |
|00000ba0| 74 65 72 6d 69 6e 61 6c | 20 74 79 70 65 73 20 7b |terminal| types {|
|00000bb0| 5c 74 74 0a 69 6d 61 67 | 65 6e 7d 20 61 6e 64 20 |\tt.imag|en} and |
|00000bc0| 7b 5c 74 74 20 70 6f 73 | 74 73 63 72 69 70 74 7d |{\tt pos|tscript}|
|00000bd0| 20 6d 61 79 20 62 65 20 | 75 73 65 64 20 66 6f 72 | may be |used for|
|00000be0| 20 6f 75 74 70 75 74 20 | 74 6f 20 70 72 69 6e 74 | output |to print|
|00000bf0| 65 72 73 0a 75 6e 64 65 | 72 73 74 61 6e 64 69 6e |ers.unde|rstandin|
|00000c00| 67 20 74 68 6f 73 65 20 | 6c 61 6e 67 75 61 67 65 |g those |language|
|00000c10| 73 2e 20 28 41 20 73 68 | 65 6c 6c 20 73 63 72 69 |s. (A sh|ell scri|
|00000c20| 70 74 20 28 7b 5c 74 74 | 20 6c 61 73 65 72 67 6e |pt ({\tt| lasergn|
|00000c30| 75 7d 29 20 69 73 0a 73 | 75 70 70 6c 69 65 64 20 |u}) is.s|upplied |
|00000c40| 77 69 74 68 20 74 68 65 | 20 64 69 73 74 72 69 62 |with the| distrib|
|00000c50| 75 74 69 6f 6e 20 74 68 | 61 74 20 77 69 6c 6c 20 |ution th|at will |
|00000c60| 61 63 63 65 70 74 20 61 | 20 47 4e 55 50 4c 4f 54 |accept a| GNUPLOT|
|00000c70| 20 63 6f 6d 6d 61 6e 64 | 20 6f 72 0a 69 6e 70 75 | command| or.inpu|
|00000c80| 74 20 66 69 6c 65 20 61 | 6e 64 20 73 65 6e 64 20 |t file a|nd send |
|00000c90| 74 68 65 20 6f 75 74 70 | 75 74 20 74 6f 20 61 6e |the outp|ut to an|
|00000ca0| 20 49 6d 61 67 65 6e 20 | 6f 72 20 50 6f 73 74 73 | Imagen |or Posts|
|00000cb0| 63 72 69 70 74 20 6c 61 | 73 65 72 0a 70 72 69 6e |cript la|ser.prin|
|00000cc0| 74 65 72 2e 20 54 68 69 | 73 20 73 63 72 69 70 74 |ter. Thi|s script|
|00000cd0| 20 6d 61 79 20 68 61 76 | 65 20 62 65 65 6e 20 61 | may hav|e been a|
|00000ce0| 64 61 70 74 65 64 20 74 | 6f 20 79 6f 75 72 20 73 |dapted t|o your s|
|00000cf0| 69 74 65 2e 29 20 54 68 | 65 20 74 65 72 6d 69 6e |ite.) Th|e termin|
|00000d00| 61 6c 0a 74 79 70 65 20 | 7b 5c 74 74 20 66 69 67 |al.type |{\tt fig|
|00000d10| 7d 20 6f 75 74 70 75 74 | 73 20 46 49 47 20 63 6f |} output|s FIG co|
|00000d20| 64 65 20 74 68 61 74 20 | 63 61 6e 20 62 65 20 72 |de that |can be r|
|00000d30| 65 61 64 20 62 79 20 74 | 68 65 20 46 69 67 20 67 |ead by t|he Fig g|
|00000d40| 72 61 70 68 69 63 73 0a | 70 72 6f 67 72 61 6d 20 |raphics.|program |
|00000d50| 61 6e 64 20 74 72 61 6e | 73 6c 61 74 65 64 20 69 |and tran|slated i|
|00000d60| 6e 74 6f 20 66 6f 72 6d | 73 20 75 73 61 62 6c 65 |nto form|s usable|
|00000d70| 20 69 6e 20 62 6f 74 68 | 20 5c 54 65 58 5c 20 61 | in both| \TeX\ a|
|00000d80| 6e 64 0a 5c 4c 61 54 65 | 58 5c 20 64 6f 63 75 6d |nd.\LaTe|X\ docum|
|00000d90| 65 6e 74 73 2e 0a 0a 57 | 65 20 6e 6f 77 20 69 67 |ents...W|e now ig|
|00000da0| 6e 6f 72 65 20 74 68 65 | 20 69 6e 74 65 72 61 63 |nore the| interac|
|00000db0| 74 69 76 65 20 6e 61 74 | 75 72 65 20 6f 66 20 47 |tive nat|ure of G|
|00000dc0| 4e 55 50 4c 4f 54 20 61 | 6e 64 20 70 72 6f 76 69 |NUPLOT a|nd provi|
|00000dd0| 64 65 20 74 68 65 20 69 | 6e 70 75 74 0a 74 6f 20 |de the i|nput.to |
|00000de0| 47 4e 55 50 4c 4f 54 20 | 66 72 6f 6d 20 61 20 66 |GNUPLOT |from a f|
|00000df0| 69 6c 65 2c 20 5c 69 65 | 2c 0a 5c 62 65 67 69 6e |ile, \ie|,.\begin|
|00000e00| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 20 20 20 20 20 |{verbati|m}. |
|00000e10| 20 67 6e 75 70 6c 6f 74 | 20 67 6e 75 2e 69 6e 70 | gnuplot| gnu.inp|
|00000e20| 75 74 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |ut.\end{|verbatim|
|00000e30| 7d 0a 49 6e 20 74 68 69 | 73 20 65 78 61 6d 70 6c |}.In thi|s exampl|
|00000e40| 65 2c 20 61 6c 6c 20 6f | 66 20 74 68 65 20 63 6f |e, all o|f the co|
|00000e50| 6d 6d 61 6e 64 73 20 74 | 6f 20 47 4e 55 50 4c 4f |mmands t|o GNUPLO|
|00000e60| 54 20 61 72 65 20 63 6f | 6e 74 61 69 6e 65 64 20 |T are co|ntained |
|00000e70| 69 6e 20 74 68 65 0a 66 | 69 6c 65 20 7b 5c 74 74 |in the.f|ile {\tt|
|00000e80| 20 67 6e 75 2e 69 6e 70 | 75 74 7d 2e 20 4d 75 6c | gnu.inp|ut}. Mul|
|00000e90| 74 69 70 6c 65 20 66 69 | 6c 65 6e 61 6d 65 73 20 |tiple fi|lenames |
|00000ea0| 6d 61 79 20 62 65 20 73 | 75 70 70 6c 69 65 64 20 |may be s|upplied |
|00000eb0| 74 6f 20 47 4e 55 50 4c | 4f 54 0a 74 68 69 73 20 |to GNUPL|OT.this |
|00000ec0| 77 61 79 2c 20 72 65 61 | 64 20 69 6e 20 74 68 65 |way, rea|d in the|
|00000ed0| 20 6f 72 64 65 72 20 74 | 68 65 79 20 61 72 65 20 | order t|hey are |
|00000ee0| 67 69 76 65 6e 2e 20 20 | 54 68 65 20 6f 75 74 70 |given. |The outp|
|00000ef0| 75 74 20 28 6f 6e 65 20 | 6f 72 20 6d 6f 72 65 0a |ut (one |or more.|
|00000f00| 70 6c 6f 74 73 29 20 6d | 61 79 20 62 65 20 70 69 |plots) m|ay be pi|
|00000f10| 70 65 64 20 74 6f 20 61 | 6e 6f 74 68 65 72 20 70 |ped to a|nother p|
|00000f20| 72 6f 67 72 61 6d 20 6f | 72 20 72 65 64 69 72 65 |rogram o|r redire|
|00000f30| 63 74 65 64 20 74 6f 20 | 61 20 66 69 6c 65 2e 0a |cted to |a file..|
|00000f40| 55 73 75 61 6c 6c 79 2c | 20 68 6f 77 65 76 65 72 |Usually,| however|
|00000f50| 2c 20 77 65 20 64 69 72 | 65 63 74 20 74 68 65 20 |, we dir|ect the |
|00000f60| 6f 75 74 70 75 74 20 65 | 78 70 6c 69 63 69 74 6c |output e|xplicitl|
|00000f70| 79 20 77 69 74 68 20 61 | 6e 20 69 6e 73 74 72 75 |y with a|n instru|
|00000f80| 63 74 69 6f 6e 0a 74 6f | 20 47 4e 55 50 4c 4f 54 |ction.to| GNUPLOT|
|00000f90| 20 28 74 68 65 20 7b 5c | 74 74 20 73 65 74 20 6f | (the {\|tt set o|
|00000fa0| 75 74 70 75 74 7d 20 63 | 6f 6d 6d 61 6e 64 29 2e |utput} c|ommand).|
|00000fb0| 20 47 4e 55 50 4c 4f 54 | 20 63 6f 6e 74 69 6e 75 | GNUPLOT| continu|
|00000fc0| 65 73 20 74 6f 20 70 72 | 69 6e 74 0a 65 72 72 6f |es to pr|int.erro|
|00000fd0| 72 20 6d 65 73 73 61 67 | 65 73 20 74 6f 20 74 68 |r messag|es to th|
|00000fe0| 65 20 74 65 72 6d 69 6e | 61 6c 20 28 73 74 64 65 |e termin|al (stde|
|00000ff0| 72 72 29 2e 0a 0a 5c 70 | 61 72 61 67 72 61 70 68 |rr)...\p|aragraph|
|00001000| 7b 45 78 61 6d 70 6c 65 | 20 31 3a 7d 20 48 65 72 |{Example| 1:} Her|
|00001010| 65 20 69 73 20 61 20 66 | 69 72 73 74 20 65 78 61 |e is a f|irst exa|
|00001020| 6d 70 6c 65 2c 20 70 72 | 6f 64 75 63 69 6e 67 20 |mple, pr|oducing |
|00001030| 61 20 70 6c 6f 74 20 66 | 6f 72 0a 74 68 69 73 20 |a plot f|or.this |
|00001040| 64 6f 63 75 6d 65 6e 74 | 2e 20 54 68 65 20 47 4e |document|. The GN|
|00001050| 55 50 4c 4f 54 20 69 6e | 70 75 74 20 66 69 6c 65 |UPLOT in|put file|
|00001060| 20 69 73 20 67 69 76 65 | 6e 20 62 65 6c 6f 77 2c | is give|n below,|
|00001070| 20 61 6e 64 20 74 68 65 | 20 6f 75 74 70 75 74 0a | and the| output.|
|00001080| 61 70 70 65 61 72 73 20 | 61 73 20 46 69 67 75 72 |appears |as Figur|
|00001090| 65 7e 5c 72 65 66 7b 65 | 67 31 7d 2e 20 54 68 65 |e~\ref{e|g1}. The|
|000010a0| 20 69 6e 70 75 74 20 66 | 69 6c 65 20 64 65 66 69 | input f|ile defi|
|000010b0| 6e 65 73 20 74 68 65 20 | 6f 75 74 70 75 74 20 74 |nes the |output t|
|000010c0| 6f 20 62 65 0a 69 6e 20 | 5c 4c 61 54 65 58 2c 20 |o be.in |\LaTeX, |
|000010d0| 67 69 76 65 73 20 61 20 | 66 69 6c 65 20 6e 61 6d |gives a |file nam|
|000010e0| 65 20 66 6f 72 20 74 68 | 65 20 6f 75 74 70 75 74 |e for th|e output|
|000010f0| 2c 20 61 6e 64 20 70 6c | 6f 74 73 20 24 79 3d 73 |, and pl|ots $y=s|
|00001100| 69 6e 28 78 29 24 20 66 | 6f 72 0a 24 78 24 20 6f |in(x)$ f|or.$x$ o|
|00001110| 6e 20 24 5b 2d 5c 70 69 | 2c 5c 70 69 5d 24 2e 20 |n $[-\pi|,\pi]$. |
|00001120| 54 6f 20 70 72 6f 64 75 | 63 65 20 74 68 65 20 66 |To produ|ce the f|
|00001130| 69 67 75 72 65 2c 20 49 | 20 73 69 6d 70 6c 79 0a |igure, I| simply.|
|00001140| 5c 76 65 72 62 2b 5c 69 | 6e 70 75 74 7b 65 67 31 |\verb+\i|nput{eg1|
|00001150| 7d 2b 20 69 6e 20 61 20 | 7b 5c 74 74 20 63 65 6e |}+ in a |{\tt cen|
|00001160| 74 65 72 7d 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |ter} env|ironment|
|00001170| 20 69 6e 20 61 20 7b 5c | 74 74 20 66 69 67 75 72 | in a {\|tt figur|
|00001180| 65 7d 0a 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 2e 20 |e}.envir|onment. |
|00001190| 49 6e 20 66 6f 6c 6c 6f | 77 69 6e 67 20 65 78 61 |In follo|wing exa|
|000011a0| 6d 70 6c 65 73 2c 20 49 | 20 77 69 6c 6c 20 65 6e |mples, I| will en|
|000011b0| 63 6c 6f 73 65 20 74 68 | 65 20 66 69 67 75 72 65 |close th|e figure|
|000011c0| 20 69 6e 20 61 20 62 6f | 78 0a 74 6f 20 6d 61 6b | in a bo|x.to mak|
|000011d0| 65 20 69 74 20 6c 6f 6f | 6b 20 61 20 6c 69 74 74 |e it loo|k a litt|
|000011e0| 6c 65 20 62 65 74 74 65 | 72 2e 0a 0a 5c 73 69 6e |le bette|r...\sin|
|000011f0| 67 6c 65 73 70 61 63 65 | 0a 5c 62 65 67 69 6e 7b |glespace|.\begin{|
|00001200| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 20 73 65 |verbatim|}. se|
|00001210| 74 20 74 65 72 6d 69 6e | 61 6c 20 6c 61 74 65 78 |t termin|al latex|
|00001220| 0a 20 20 20 20 73 65 74 | 20 6f 75 74 70 75 74 20 |. set| output |
|00001230| 22 65 67 31 2e 74 65 78 | 22 0a 20 20 20 20 70 6c |"eg1.tex|". pl|
|00001240| 6f 74 20 5b 2d 33 2e 31 | 34 3a 33 2e 31 34 5d 20 |ot [-3.1|4:3.14] |
|00001250| 73 69 6e 28 78 29 0a 5c | 65 6e 64 7b 76 65 72 62 |sin(x).\|end{verb|
|00001260| 61 74 69 6d 7d 0a 5c 63 | 75 72 72 65 6e 74 73 70 |atim}.\c|urrentsp|
|00001270| 61 63 65 0a 0a 5c 62 65 | 67 69 6e 7b 66 69 67 75 |ace..\be|gin{figu|
|00001280| 72 65 7d 5b 68 74 62 70 | 5d 0a 20 20 5c 62 65 67 |re}[htbp|]. \beg|
|00001290| 69 6e 7b 63 65 6e 74 65 | 72 7d 0a 20 20 20 20 5c |in{cente|r}. \|
|000012a0| 69 6e 70 75 74 7b 65 67 | 31 7d 0a 20 20 5c 65 6e |input{eg|1}. \en|
|000012b0| 64 7b 63 65 6e 74 65 72 | 7d 0a 20 20 5c 63 61 70 |d{center|}. \cap|
|000012c0| 74 69 6f 6e 7b 41 20 66 | 69 72 73 74 20 65 78 61 |tion{A f|irst exa|
|000012d0| 6d 70 6c 65 3a 20 24 79 | 3d 73 69 6e 28 78 29 24 |mple: $y|=sin(x)$|
|000012e0| 7d 0a 20 20 5c 6c 61 62 | 65 6c 7b 65 67 31 7d 0a |}. \lab|el{eg1}.|
|000012f0| 5c 65 6e 64 7b 66 69 67 | 75 72 65 7d 0a 0a 4e 6f |\end{fig|ure}..No|
|00001300| 74 65 20 74 68 61 74 20 | 47 4e 55 50 4c 4f 54 20 |te that |GNUPLOT |
|00001310| 68 61 73 20 64 72 61 77 | 6e 20 69 6e 20 74 68 65 |has draw|n in the|
|00001320| 20 61 78 65 73 2c 20 6c | 61 62 65 6c 65 64 20 74 | axes, l|abeled t|
|00001330| 68 65 20 74 69 63 20 6d | 61 72 6b 73 20 66 6f 72 |he tic m|arks for|
|00001340| 20 75 73 2c 0a 73 63 61 | 6c 65 64 20 74 68 65 20 | us,.sca|led the |
|00001350| 24 79 24 20 61 78 69 73 | 20 61 75 74 6f 6d 61 74 |$y$ axis| automat|
|00001360| 69 63 61 6c 6c 79 2c 20 | 61 6e 64 20 61 64 64 65 |ically, |and adde|
|00001370| 64 20 61 20 6b 65 79 20 | 69 6e 20 74 68 65 0a 75 |d a key |in the.u|
|00001380| 70 70 65 72 2d 72 69 67 | 68 74 2d 68 61 6e 64 20 |pper-rig|ht-hand |
|00001390| 63 6f 72 6e 65 72 20 28 | 74 68 69 73 20 6d 61 79 |corner (|this may|
|000013a0| 20 62 65 20 6d 6f 76 65 | 64 20 77 69 74 68 20 74 | be move|d with t|
|000013b0| 68 65 20 7b 5c 74 74 20 | 73 65 74 20 6b 65 79 7d |he {\tt |set key}|
|000013c0| 0a 63 6f 6d 6d 61 6e 64 | 2c 20 61 6e 64 20 72 65 |.command|, and re|
|000013d0| 6d 6f 76 65 64 20 77 69 | 74 68 20 7b 5c 74 74 20 |moved wi|th {\tt |
|000013e0| 73 65 74 20 6e 6f 6b 65 | 79 7d 29 2e 0a 0a 54 68 |set noke|y})...Th|
|000013f0| 69 73 20 69 73 20 74 68 | 65 20 64 65 66 61 75 6c |is is th|e defaul|
|00001400| 74 20 6c 69 6e 65 20 73 | 74 79 6c 65 20 66 6f 72 |t line s|tyle for|
|00001410| 20 74 68 65 20 5c 4c 61 | 54 65 58 5c 20 64 72 69 | the \La|TeX\ dri|
|00001420| 76 65 72 2e 20 20 42 65 | 63 61 75 73 65 20 6f 66 |ver. Be|cause of|
|00001430| 20 74 68 65 0a 6c 69 6d | 69 74 65 64 20 70 69 63 | the.lim|ited pic|
|00001440| 74 75 72 65 20 63 61 70 | 61 62 69 6c 69 74 69 65 |ture cap|abilitie|
|00001450| 73 20 6f 66 20 5c 4c 61 | 54 65 58 2c 20 6d 61 6e |s of \La|TeX, man|
|00001460| 79 20 64 6f 74 73 20 61 | 72 65 20 72 65 71 75 69 |y dots a|re requi|
|00001470| 72 65 64 20 74 6f 0a 61 | 70 70 72 6f 78 69 6d 61 |red to.a|pproxima|
|00001480| 74 65 20 64 72 61 77 69 | 6e 67 20 61 20 73 6f 6c |te drawi|ng a sol|
|00001490| 69 64 20 6c 69 6e 65 2e | 20 54 68 69 73 20 6d 61 |id line.| This ma|
|000014a0| 79 20 6f 76 65 72 6c 6f | 61 64 20 74 68 65 20 6d |y overlo|ad the m|
|000014b0| 65 6d 6f 72 79 20 6f 66 | 20 6d 61 6e 79 0a 5c 54 |emory of| many.\T|
|000014c0| 65 58 5c 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |eX\ impl|ementati|
|000014d0| 6f 6e 73 2e 20 54 68 65 | 72 65 20 61 72 65 20 6f |ons. The|re are o|
|000014e0| 74 68 65 72 20 6c 69 6e | 65 20 74 79 70 65 73 20 |ther lin|e types |
|000014f0| 61 76 61 69 6c 61 62 6c | 65 20 74 68 61 74 20 64 |availabl|e that d|
|00001500| 72 61 77 0a 64 6f 74 74 | 65 64 20 6c 69 6e 65 73 |raw.dott|ed lines|
|00001510| 20 61 6e 64 20 75 73 65 | 20 6d 75 63 68 20 6c 65 | and use| much le|
|00001520| 73 73 20 6d 65 6d 6f 72 | 79 2e 20 54 68 65 20 45 |ss memor|y. The E|
|00001530| 45 50 49 43 20 64 72 69 | 76 65 72 20 64 72 61 77 |EPIC dri|ver draw|
|00001540| 73 20 73 6f 6c 69 64 0a | 6c 69 6e 65 73 20 77 69 |s solid.|lines wi|
|00001550| 74 68 20 6d 75 63 68 20 | 6c 65 73 73 20 6d 65 6d |th much |less mem|
|00001560| 6f 72 79 20 75 73 61 67 | 65 2e 0a 0a 5c 70 61 72 |ory usag|e...\par|
|00001570| 61 67 72 61 70 68 7b 45 | 78 61 6d 70 6c 65 20 32 |agraph{E|xample 2|
|00001580| 3a 7d 20 4e 6f 77 20 77 | 65 20 77 69 6c 6c 20 65 |:} Now w|e will e|
|00001590| 6d 62 65 6c 6c 69 73 68 | 20 74 68 65 20 70 6c 6f |mbellish| the plo|
|000015a0| 74 20 61 20 6c 69 74 74 | 6c 65 20 77 69 74 68 0a |t a litt|le with.|
|000015b0| 73 6f 6d 65 20 6c 61 62 | 65 6c 73 2e 20 20 54 68 |some lab|els. Th|
|000015c0| 69 73 20 69 6e 70 75 74 | 20 66 69 6c 65 20 70 72 |is input| file pr|
|000015d0| 6f 64 75 63 65 73 20 46 | 69 67 75 72 65 7e 5c 72 |oduces F|igure~\r|
|000015e0| 65 66 7b 65 67 32 7d 2e | 0a 0a 5c 73 69 6e 67 6c |ef{eg2}.|..\singl|
|000015f0| 65 73 70 61 63 65 0a 5c | 62 65 67 69 6e 7b 76 65 |espace.\|begin{ve|
|00001600| 72 62 61 74 69 6d 7d 0a | 20 20 20 20 73 65 74 20 |rbatim}.| set |
|00001610| 74 65 72 6d 69 6e 61 6c | 20 6c 61 74 65 78 0a 20 |terminal| latex. |
|00001620| 20 20 20 73 65 74 20 6f | 75 74 70 75 74 20 22 65 | set o|utput "e|
|00001630| 67 32 2e 74 65 78 22 0a | 20 20 20 20 73 65 74 20 |g2.tex".| set |
|00001640| 73 69 7a 65 20 35 2f 35 | 2e 2c 20 34 2f 33 2e 0a |size 5/5|., 4/3..|
|00001650| 20 20 20 20 73 65 74 20 | 66 6f 72 6d 61 74 20 78 | set |format x|
|00001660| 79 20 22 24 25 67 24 22 | 0a 20 20 20 20 73 65 74 |y "$%g$"|. set|
|00001670| 20 74 69 74 6c 65 20 22 | 54 68 69 73 20 69 73 20 | title "|This is |
|00001680| 61 20 70 6c 6f 74 20 6f | 66 20 24 79 3d 73 69 6e |a plot o|f $y=sin|
|00001690| 28 78 29 24 22 0a 20 20 | 20 20 73 65 74 20 78 6c |(x)$". | set xl|
|000016a0| 61 62 65 6c 20 22 54 68 | 69 73 20 69 73 20 74 68 |abel "Th|is is th|
|000016b0| 65 20 24 78 24 20 61 78 | 69 73 22 0a 20 20 20 20 |e $x$ ax|is". |
|000016c0| 73 65 74 20 79 6c 61 62 | 65 6c 20 22 54 68 69 73 |set ylab|el "This|
|000016d0| 20 69 73 5c 5c 74 68 65 | 5c 5c 24 79 24 20 61 78 | is\\the|\\$y$ ax|
|000016e0| 69 73 22 0a 20 20 20 20 | 70 6c 6f 74 20 5b 30 3a |is". |plot [0:|
|000016f0| 36 2e 32 38 5d 20 5b 30 | 3a 31 5d 20 73 69 6e 28 |6.28] [0|:1] sin(|
|00001700| 78 29 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |x).\end{|verbatim|
|00001710| 7d 0a 5c 63 75 72 72 65 | 6e 74 73 70 61 63 65 0a |}.\curre|ntspace.|
|00001720| 0a 5c 62 6f 78 66 69 67 | 75 72 65 7b 68 74 62 70 |.\boxfig|ure{htbp|
|00001730| 7d 7b 5c 66 75 6c 6c 62 | 6f 78 77 69 64 74 68 7d |}{\fullb|oxwidth}|
|00001740| 7b 0a 20 20 5c 62 65 67 | 69 6e 7b 63 65 6e 74 65 |{. \beg|in{cente|
|00001750| 72 7d 0a 20 20 20 20 5c | 69 6e 70 75 74 7b 65 67 |r}. \|input{eg|
|00001760| 32 7d 0a 20 20 5c 65 6e | 64 7b 63 65 6e 74 65 72 |2}. \en|d{center|
|00001770| 7d 0a 20 20 5c 63 61 70 | 74 69 6f 6e 7b 41 20 6d |}. \cap|tion{A m|
|00001780| 6f 72 65 20 66 61 6e 63 | 79 20 65 78 61 6d 70 6c |ore fanc|y exampl|
|00001790| 65 2e 7d 0a 20 20 5c 6c | 61 62 65 6c 7b 65 67 32 |e.}. \l|abel{eg2|
|000017a0| 7d 0a 7d 0a 0a 57 65 20 | 68 61 76 65 20 73 70 65 |}.}..We |have spe|
|000017b0| 63 69 66 69 65 64 20 74 | 68 65 20 70 6c 6f 74 20 |cified t|he plot |
|000017c0| 74 6f 20 62 65 20 35 20 | 69 6e 63 68 65 73 20 77 |to be 5 |inches w|
|000017d0| 69 64 65 20 61 6e 64 20 | 34 20 69 6e 63 68 65 73 |ide and |4 inches|
|000017e0| 20 74 61 6c 6c 20 77 69 | 74 68 0a 74 68 65 20 7b | tall wi|th.the {|
|000017f0| 5c 74 74 20 73 65 74 20 | 73 69 7a 65 7d 20 63 6f |\tt set |size} co|
|00001800| 6d 6d 61 6e 64 2e 20 54 | 68 69 73 20 69 73 20 74 |mmand. T|his is t|
|00001810| 68 65 20 73 69 7a 65 20 | 6f 66 20 74 68 65 20 61 |he size |of the a|
|00001820| 72 65 61 20 75 73 65 64 | 20 62 79 20 74 68 65 0a |rea used| by the.|
|00001830| 70 6c 6f 74 2c 20 7b 5c | 65 6d 20 69 6e 63 6c 75 |plot, {\|em inclu|
|00001840| 64 69 6e 67 7d 20 73 70 | 61 63 65 20 66 6f 72 20 |ding} sp|ace for |
|00001850| 74 68 65 20 6c 61 62 65 | 6c 73 2e 20 20 49 6e 20 |the labe|ls. In |
|00001860| 74 68 65 20 66 69 72 73 | 74 20 65 78 61 6d 70 6c |the firs|t exampl|
|00001870| 65 2c 0a 74 68 69 73 20 | 73 69 7a 65 20 77 61 73 |e,.this |size was|
|00001880| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 35 20 69 | the def|ault 5 i|
|00001890| 6e 63 68 65 73 20 62 79 | 20 33 20 69 6e 63 68 65 |nches by| 3 inche|
|000018a0| 73 2e 20 42 79 20 73 70 | 65 63 69 66 79 69 6e 67 |s. By sp|ecifying|
|000018b0| 20 74 68 65 0a 73 63 61 | 6c 69 6e 67 20 66 61 63 | the.sca|ling fac|
|000018c0| 74 6f 72 73 20 6f 66 20 | 31 20 28 6f 72 20 35 2f |tors of |1 (or 5/|
|000018d0| 35 29 20 61 6e 64 20 31 | 2e 33 33 33 33 20 28 6f |5) and 1|.3333 (o|
|000018e0| 72 20 34 2f 33 29 2c 20 | 77 65 20 6f 62 74 61 69 |r 4/3), |we obtai|
|000018f0| 6e 20 74 68 65 0a 64 65 | 73 69 72 65 64 20 70 6c |n the.de|sired pl|
|00001900| 6f 74 20 73 69 7a 65 2e | 0a 0a 57 65 20 68 61 76 |ot size.|..We hav|
|00001910| 65 20 72 65 71 75 65 73 | 74 65 64 20 74 68 61 74 |e reques|ted that|
|00001920| 20 74 68 65 20 66 6f 72 | 6d 61 74 20 75 73 65 64 | the for|mat used|
|00001930| 20 62 79 20 74 68 65 20 | 24 78 24 2d 20 61 6e 64 | by the |$x$- and|
|00001940| 20 24 79 24 2d 61 78 69 | 73 20 74 69 63 0a 6d 61 | $y$-axi|s tic.ma|
|00001950| 72 6b 20 6c 61 62 65 6c | 73 20 62 65 20 69 6e 20 |rk label|s be in |
|00001960| 5c 4c 61 54 65 58 5c 20 | 6d 61 74 68 20 6d 6f 64 |\LaTeX\ |math mod|
|00001970| 65 2e 20 54 68 69 73 20 | 6d 61 6b 65 73 20 74 68 |e. This |makes th|
|00001980| 65 20 6c 61 62 65 6c 73 | 20 6c 6f 6f 6b 20 61 0a |e labels| look a.|
|00001990| 6c 69 74 74 6c 65 20 62 | 65 74 74 65 72 2e 20 54 |little b|etter. T|
|000019a0| 68 65 20 64 65 66 61 75 | 6c 74 20 69 73 20 5c 76 |he defau|lt is \v|
|000019b0| 65 72 62 2b 73 65 74 20 | 66 6f 72 6d 61 74 20 78 |erb+set |format x|
|000019c0| 79 20 22 25 67 22 2b 2e | 20 54 68 65 20 5c 76 65 |y "%g"+.| The \ve|
|000019d0| 72 62 2b 25 67 2b 0a 72 | 65 70 72 65 73 65 6e 74 |rb+%g+.r|epresent|
|000019e0| 73 20 74 68 65 20 67 65 | 6e 65 72 61 6c 2d 70 75 |s the ge|neral-pu|
|000019f0| 72 70 6f 73 65 20 66 6c | 6f 61 74 69 6e 67 20 70 |rpose fl|oating p|
|00001a00| 6f 69 6e 74 20 66 6f 72 | 6d 61 74 74 69 6e 67 20 |oint for|matting |
|00001a10| 73 70 65 63 69 66 69 63 | 61 74 69 6f 6e 0a 66 6f |specific|ation.fo|
|00001a20| 72 20 74 68 65 20 7b 5c | 74 74 20 70 72 69 6e 74 |r the {\|tt print|
|00001a30| 66 7d 20 66 75 6e 63 74 | 69 6f 6e 20 69 6e 20 43 |f} funct|ion in C|
|00001a40| 2e 20 41 6e 79 20 76 61 | 6c 69 64 20 66 6c 6f 61 |. Any va|lid floa|
|00001a50| 74 69 6e 67 2d 70 6f 69 | 6e 74 0a 66 6f 72 6d 61 |ting-poi|nt.forma|
|00001a60| 74 74 69 6e 67 20 73 70 | 65 63 69 66 69 63 61 74 |tting sp|ecificat|
|00001a70| 69 6f 6e 2c 20 6f 72 20 | 5c 4c 61 54 65 58 5c 20 |ion, or |\LaTeX\ |
|00001a80| 63 6f 6d 6d 61 6e 64 2c | 20 69 73 20 61 6c 6c 6f |command,| is allo|
|00001a90| 77 65 64 20 69 6e 20 74 | 68 65 0a 66 6f 72 6d 61 |wed in t|he.forma|
|00001aa0| 74 2e 0a 0a 41 20 74 69 | 74 6c 65 20 66 6f 72 20 |t...A ti|tle for |
|00001ab0| 74 68 65 20 70 6c 6f 74 | 20 61 6e 64 20 6c 61 62 |the plot| and lab|
|00001ac0| 65 6c 73 20 66 6f 72 20 | 74 68 65 20 61 78 65 73 |els for |the axes|
|00001ad0| 20 77 65 72 65 20 73 65 | 74 20 75 70 20 69 6e 20 | were se|t up in |
|00001ae0| 74 68 65 20 6e 65 78 74 | 0a 74 68 72 65 65 20 63 |the next|.three c|
|00001af0| 6f 6d 6d 61 6e 64 73 2e | 20 20 4e 6f 74 65 20 74 |ommands.| Note t|
|00001b00| 68 61 74 20 74 68 65 79 | 20 61 72 65 20 70 72 6f |hat they| are pro|
|00001b10| 63 65 73 73 65 64 20 62 | 79 20 5c 4c 61 54 65 58 |cessed b|y \LaTeX|
|00001b20| 5c 20 61 6e 64 20 73 6f | 20 6d 61 79 0a 68 61 76 |\ and so| may.hav|
|00001b30| 65 20 6d 61 74 68 20 6d | 6f 64 65 20 61 6e 64 20 |e math m|ode and |
|00001b40| 6f 74 68 65 72 20 73 79 | 6d 62 6f 6c 73 20 69 6e |other sy|mbols in|
|00001b50| 20 74 68 65 6d 2e 20 54 | 68 65 20 79 6c 61 62 65 | them. T|he ylabe|
|00001b60| 6c 20 6d 61 79 20 68 61 | 76 65 20 6d 75 6c 74 69 |l may ha|ve multi|
|00001b70| 70 6c 65 0a 6c 69 6e 65 | 73 2c 20 64 65 6c 69 6e |ple.line|s, delin|
|00001b80| 65 61 74 65 64 20 77 69 | 74 68 20 5c 76 65 72 62 |eated wi|th \verb|
|00001b90| 2b 5c 5c 2b 2e 20 20 54 | 68 65 20 79 6c 61 62 65 |+\\+. T|he ylabe|
|00001ba0| 6c 20 63 61 6e 20 62 65 | 20 6d 6f 76 65 64 20 61 |l can be| moved a|
|00001bb0| 72 6f 75 6e 64 20 77 69 | 74 68 0a 6f 70 74 69 6f |round wi|th.optio|
|00001bc0| 6e 61 6c 20 6f 66 66 73 | 65 74 20 70 61 72 61 6d |nal offs|et param|
|00001bd0| 65 74 65 72 73 20 28 73 | 65 65 20 7b 5c 74 74 20 |eters (s|ee {\tt |
|00001be0| 73 65 74 20 79 6c 61 62 | 65 6c 7d 20 69 6e 20 74 |set ylab|el} in t|
|00001bf0| 68 65 20 47 4e 55 50 4c | 4f 54 0a 6d 61 6e 75 61 |he GNUPL|OT.manua|
|00001c00| 6c 29 2e 20 54 79 70 69 | 63 61 6c 6c 79 2c 20 74 |l). Typi|cally, t|
|00001c10| 68 65 20 79 6c 61 62 65 | 6c 20 6e 65 65 64 73 20 |he ylabe|l needs |
|00001c20| 74 6f 20 62 65 20 6d 6f | 76 65 64 20 74 6f 20 74 |to be mo|ved to t|
|00001c30| 68 65 20 6c 65 66 74 20 | 74 6f 20 61 76 6f 69 64 |he left |to avoid|
|00001c40| 0a 69 6e 74 65 72 66 65 | 72 69 6e 67 20 77 69 74 |.interfe|ring wit|
|00001c50| 68 20 74 68 65 20 6c 65 | 66 74 2d 68 61 6e 64 20 |h the le|ft-hand |
|00001c60| 73 69 64 65 20 6f 66 20 | 74 68 65 20 70 6c 6f 74 |side of |the plot|
|00001c70| 2e 20 20 4f 6e 63 65 20 | 74 68 65 73 65 20 6c 61 |. Once |these la|
|00001c80| 62 65 6c 73 0a 61 72 65 | 20 73 65 74 20 75 70 2c |bels.are| set up,|
|00001c90| 20 74 68 65 79 20 77 69 | 6c 6c 20 62 65 20 75 73 | they wi|ll be us|
|00001ca0| 65 64 20 66 6f 72 20 61 | 6c 6c 20 73 75 62 73 65 |ed for a|ll subse|
|00001cb0| 71 75 65 6e 74 20 70 6c | 6f 74 20 63 6f 6d 6d 61 |quent pl|ot comma|
|00001cc0| 6e 64 73 20 75 6e 74 69 | 6c 0a 74 68 65 79 20 61 |nds unti|l.they a|
|00001cd0| 72 65 20 63 68 61 6e 67 | 65 64 2e 20 54 68 65 73 |re chang|ed. Thes|
|00001ce0| 65 20 6c 61 62 65 6c 73 | 20 61 72 65 20 61 6c 73 |e labels| are als|
|00001cf0| 6f 20 73 75 70 70 6f 72 | 74 65 64 20 62 79 20 74 |o suppor|ted by t|
|00001d00| 68 65 20 6f 74 68 65 72 | 0a 74 65 72 6d 69 6e 61 |he other|.termina|
|00001d10| 6c 20 74 79 70 65 73 2c | 20 62 75 74 20 28 6f 66 |l types,| but (of|
|00001d20| 20 63 6f 75 72 73 65 29 | 20 61 6e 79 20 5c 4c 61 | course)| any \La|
|00001d30| 54 65 58 5c 20 63 6f 64 | 65 20 69 6e 20 74 68 65 |TeX\ cod|e in the|
|00001d40| 20 73 74 72 69 6e 67 20 | 77 69 6c 6c 0a 6e 6f 74 | string |will.not|
|00001d50| 20 62 65 20 69 6e 74 65 | 72 70 72 65 74 65 64 2e | be inte|rpreted.|
|00001d60| 20 57 65 20 68 61 76 65 | 20 61 6c 73 6f 20 64 65 | We have| also de|
|00001d70| 66 69 6e 65 64 20 74 68 | 65 20 72 61 6e 67 65 20 |fined th|e range |
|00001d80| 6f 66 20 62 6f 74 68 20 | 24 78 24 20 28 6e 6f 77 |of both |$x$ (now|
|00001d90| 0a 24 5b 30 2c 32 5c 70 | 69 5d 24 29 20 61 6e 64 |.$[0,2\p|i]$) and|
|00001da0| 20 24 79 24 20 28 68 65 | 72 65 20 24 5b 30 2c 31 | $y$ (he|re $[0,1|
|00001db0| 5d 24 29 2e 0a 0a 53 6f | 20 66 61 72 20 77 65 20 |]$)...So| far we |
|00001dc0| 68 61 76 65 20 70 6c 6f | 74 74 65 64 20 6f 6e 65 |have plo|tted one|
|00001dd0| 20 63 75 72 76 65 2c 20 | 24 79 3d 5c 73 69 6e 28 | curve, |$y=\sin(|
|00001de0| 78 29 24 2c 20 6f 6e 20 | 6f 6e 65 20 70 6c 6f 74 |x)$, on |one plot|
|00001df0| 2e 20 49 6e 0a 47 4e 55 | 50 4c 4f 54 2c 20 65 61 |. In.GNU|PLOT, ea|
|00001e00| 63 68 20 7b 5c 74 74 20 | 70 6c 6f 74 7d 20 63 6f |ch {\tt |plot} co|
|00001e10| 6d 6d 61 6e 64 20 67 65 | 6e 65 72 61 74 65 73 20 |mmand ge|nerates |
|00001e20| 61 20 6e 65 77 20 70 6c | 6f 74 2e 20 49 66 20 74 |a new pl|ot. If t|
|00001e30| 68 65 20 6f 75 74 70 75 | 74 0a 69 73 20 74 6f 20 |he outpu|t.is to |
|00001e40| 61 20 73 63 72 65 65 6e | 2c 20 74 68 65 20 73 63 |a screen|, the sc|
|00001e50| 72 65 65 6e 20 69 73 20 | 63 6c 65 61 72 65 64 2e |reen is |cleared.|
|00001e60| 20 49 66 20 74 6f 20 61 | 20 70 72 69 6e 74 65 72 | If to a| printer|
|00001e70| 2c 20 61 20 6e 65 77 20 | 70 61 67 65 20 69 73 0a |, a new |page is.|
|00001e80| 70 72 6f 64 75 63 65 64 | 2e 20 49 6e 20 74 68 65 |produced|. In the|
|00001e90| 20 7b 5c 74 74 20 6c 61 | 74 65 78 7d 20 63 61 73 | {\tt la|tex} cas|
|00001ea0| 65 2c 20 61 20 6e 65 77 | 20 70 69 63 74 75 72 65 |e, a new| picture|
|00001eb0| 20 69 73 20 73 74 61 72 | 74 65 64 2e 20 49 74 20 | is star|ted. It |
|00001ec0| 69 73 20 6e 6f 74 0a 6c | 69 6b 65 6c 79 20 74 68 |is not.l|ikely th|
|00001ed0| 61 74 20 5c 4c 61 54 65 | 58 5c 20 75 73 65 72 73 |at \LaTe|X\ users|
|00001ee0| 20 77 69 6c 6c 20 77 61 | 6e 74 20 74 68 69 73 20 | will wa|nt this |
|00001ef0| 74 6f 20 68 61 70 70 65 | 6e 2c 20 73 6f 20 67 65 |to happe|n, so ge|
|00001f00| 6e 65 72 61 6c 6c 79 20 | 65 61 63 68 0a 70 6c 6f |nerally |each.plo|
|00001f10| 74 20 68 61 73 20 69 74 | 73 20 6f 77 6e 20 69 6e |t has it|s own in|
|00001f20| 70 75 74 20 66 69 6c 65 | 20 61 6e 64 20 69 73 20 |put file| and is |
|00001f30| 6b 65 70 74 20 69 6e 20 | 61 20 73 65 70 61 72 61 |kept in |a separa|
|00001f40| 74 65 20 6f 75 74 70 75 | 74 20 28 7b 5c 74 74 0a |te outpu|t ({\tt.|
|00001f50| 2e 74 65 78 7d 29 20 66 | 69 6c 65 20 66 6f 72 20 |.tex}) f|ile for |
|00001f60| 69 6e 63 6c 75 73 69 6f | 6e 20 61 74 20 64 69 66 |inclusio|n at dif|
|00001f70| 66 65 72 65 6e 74 20 70 | 6c 61 63 65 73 20 69 6e |ferent p|laces in|
|00001f80| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 2e 0a 0a | the doc|ument...|
|00001f90| 5c 70 61 72 61 67 72 61 | 70 68 7b 45 78 61 6d 70 |\paragra|ph{Examp|
|00001fa0| 6c 65 20 33 3a 7d 20 54 | 6f 20 70 6c 61 63 65 20 |le 3:} T|o place |
|00001fb0| 6d 6f 72 65 20 74 68 61 | 6e 20 6f 6e 65 20 63 75 |more tha|n one cu|
|00001fc0| 72 76 65 20 6f 6e 20 61 | 20 70 6c 6f 74 2c 20 75 |rve on a| plot, u|
|00001fd0| 73 65 20 6f 6e 65 0a 7b | 5c 74 74 20 70 6c 6f 74 |se one.{|\tt plot|
|00001fe0| 7d 20 73 74 61 74 65 6d | 65 6e 74 20 61 6e 64 20 |} statem|ent and |
|00001ff0| 73 65 70 61 72 61 74 65 | 20 74 68 65 20 64 65 73 |separate| the des|
|00002000| 63 72 69 70 74 69 6f 6e | 20 6f 66 20 65 61 63 68 |cription| of each|
|00002010| 20 63 75 72 76 65 20 62 | 79 20 61 0a 63 6f 6d 6d | curve b|y a.comm|
|00002020| 61 2e 20 49 6e 20 6f 75 | 72 20 6e 65 78 74 20 65 |a. In ou|r next e|
|00002030| 78 61 6d 70 6c 65 2c 20 | 77 65 20 77 69 6c 6c 20 |xample, |we will |
|00002040| 70 6c 6f 74 20 62 6f 74 | 68 20 61 20 66 75 6e 63 |plot bot|h a func|
|00002050| 74 69 6f 6e 20 61 6e 64 | 20 61 20 64 61 74 61 0a |tion and| a data.|
|00002060| 66 69 6c 65 20 6f 6e 20 | 74 68 65 20 73 61 6d 65 |file on |the same|
|00002070| 20 70 6c 6f 74 2e 20 54 | 68 69 73 20 70 6c 6f 74 | plot. T|his plot|
|00002080| 20 69 73 20 73 68 6f 77 | 6e 20 69 6e 20 46 69 67 | is show|n in Fig|
|00002090| 75 72 65 7e 5c 72 65 66 | 7b 65 67 33 7d 2e 0a 0a |ure~\ref|{eg3}...|
|000020a0| 5c 73 69 6e 67 6c 65 73 | 70 61 63 65 0a 5c 62 65 |\singles|pace.\be|
|000020b0| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 20 20 |gin{verb|atim}. |
|000020c0| 20 20 73 65 74 20 74 65 | 72 6d 69 6e 61 6c 20 6c | set te|rminal l|
|000020d0| 61 74 65 78 0a 20 20 20 | 20 73 65 74 20 6f 75 74 |atex. | set out|
|000020e0| 70 75 74 20 22 65 67 33 | 2e 74 65 78 22 0a 20 20 |put "eg3|.tex". |
|000020f0| 20 20 73 65 74 20 66 6f | 72 6d 61 74 20 78 79 20 | set fo|rmat xy |
|00002100| 22 24 25 67 24 22 0a 20 | 20 20 20 73 65 74 20 74 |"$%g$". | set t|
|00002110| 69 74 6c 65 20 22 54 68 | 69 73 20 69 73 20 61 6e |itle "Th|is is an|
|00002120| 6f 74 68 65 72 20 70 6c | 6f 74 22 0a 20 20 20 20 |other pl|ot". |
|00002130| 73 65 74 20 78 6c 61 62 | 65 6c 20 22 24 78 24 20 |set xlab|el "$x$ |
|00002140| 61 78 69 73 22 0a 20 20 | 20 20 73 65 74 20 79 6c |axis". | set yl|
|00002150| 61 62 65 6c 20 22 24 79 | 24 20 61 78 69 73 22 0a |abel "$y|$ axis".|
|00002160| 20 20 20 20 73 65 74 20 | 6b 65 79 20 31 35 2c 2d | set |key 15,-|
|00002170| 31 30 0a 20 20 20 20 70 | 6c 6f 74 20 78 20 77 69 |10. p|lot x wi|
|00002180| 74 68 20 6c 69 6e 65 73 | 2c 20 22 65 67 33 2e 64 |th lines|, "eg3.d|
|00002190| 61 74 22 20 77 69 74 68 | 20 6c 69 6e 65 73 70 6f |at" with| linespo|
|000021a0| 69 6e 74 73 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 |ints.\en|d{verbat|
|000021b0| 69 6d 7d 0a 5c 63 75 72 | 72 65 6e 74 73 70 61 63 |im}.\cur|rentspac|
|000021c0| 65 0a 0a 5c 62 6f 78 66 | 69 67 75 72 65 7b 68 74 |e..\boxf|igure{ht|
|000021d0| 62 70 7d 7b 5c 66 75 6c | 6c 62 6f 78 77 69 64 74 |bp}{\ful|lboxwidt|
|000021e0| 68 7d 7b 0a 20 20 5c 62 | 65 67 69 6e 7b 63 65 6e |h}{. \b|egin{cen|
|000021f0| 74 65 72 7d 0a 20 20 20 | 20 5c 69 6e 70 75 74 7b |ter}. | \input{|
|00002200| 65 67 33 7d 0a 20 20 5c | 65 6e 64 7b 63 65 6e 74 |eg3}. \|end{cent|
|00002210| 65 72 7d 0a 20 20 5c 63 | 61 70 74 69 6f 6e 7b 41 |er}. \c|aption{A|
|00002220| 6e 20 65 78 61 6d 70 6c | 65 20 77 69 74 68 20 74 |n exampl|e with t|
|00002230| 77 6f 20 63 75 72 76 65 | 73 20 6f 6e 20 74 68 65 |wo curve|s on the|
|00002240| 20 73 61 6d 65 20 70 6c | 6f 74 2e 7d 0a 20 20 5c | same pl|ot.}. \|
|00002250| 6c 61 62 65 6c 7b 65 67 | 33 7d 0a 7d 0a 0a 48 65 |label{eg|3}.}..He|
|00002260| 72 65 20 79 6f 75 20 77 | 69 6c 6c 20 73 65 65 20 |re you w|ill see |
|00002270| 74 68 61 74 20 74 68 65 | 20 24 78 24 20 72 61 6e |that the| $x$ ran|
|00002280| 67 65 20 77 61 73 20 6e | 6f 74 20 73 70 65 63 69 |ge was n|ot speci|
|00002290| 66 69 65 64 2e 20 54 68 | 65 20 24 78 24 20 72 61 |fied. Th|e $x$ ra|
|000022a0| 6e 67 65 0a 69 73 20 64 | 65 74 65 72 6d 69 6e 65 |nge.is d|etermine|
|000022b0| 64 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 2c |d automa|tically,|
|000022c0| 20 75 6e 6c 65 73 73 20 | 73 70 65 63 69 66 69 65 | unless |specifie|
|000022d0| 64 20 62 79 20 74 68 65 | 20 75 73 65 72 2e 20 20 |d by the| user. |
|000022e0| 49 6e 0a 74 68 69 73 20 | 63 61 73 65 2c 20 69 74 |In.this |case, it|
|000022f0| 20 69 73 20 64 65 66 69 | 6e 65 64 20 62 79 20 74 | is defi|ned by t|
|00002300| 68 65 20 72 61 6e 67 65 | 20 6f 66 20 74 68 65 20 |he range| of the |
|00002310| 64 61 74 61 20 66 69 6c | 65 0a 5c 76 65 72 62 2b |data fil|e.\verb+|
|00002320| 22 65 67 33 2e 64 61 74 | 22 2b 2e 20 54 68 65 20 |"eg3.dat|"+. The |
|00002330| 66 75 6e 63 74 69 6f 6e | 20 69 73 20 70 6c 6f 74 |function| is plot|
|00002340| 74 65 64 20 6f 76 65 72 | 20 74 68 65 20 73 61 6d |ted over| the sam|
|00002350| 65 20 72 61 6e 67 65 2e | 20 49 66 20 6e 6f 0a 64 |e range.| If no.d|
|00002360| 61 74 61 20 66 69 6c 65 | 73 20 6f 72 20 24 78 24 |ata file|s or $x$|
|00002370| 20 72 61 6e 67 65 20 61 | 72 65 20 73 75 70 70 6c | range a|re suppl|
|00002380| 69 65 64 2c 20 74 68 65 | 20 64 65 66 61 75 6c 74 |ied, the| default|
|00002390| 20 72 61 6e 67 65 20 6f | 66 20 24 5b 2d 31 30 3a | range o|f $[-10:|
|000023a0| 31 30 5d 24 0a 69 73 20 | 75 73 65 64 2e 20 57 65 |10]$.is |used. We|
|000023b0| 20 68 61 76 65 20 61 6c | 73 6f 20 6d 6f 76 65 64 | have al|so moved|
|000023c0| 20 74 68 65 20 6b 65 79 | 20 74 6f 20 61 20 64 69 | the key| to a di|
|000023d0| 66 66 65 72 65 6e 74 20 | 70 6f 73 69 74 69 6f 6e |fferent |position|
|000023e0| 2e 20 20 54 68 65 0a 66 | 75 6e 63 74 69 6f 6e 20 |. The.f|unction |
|000023f0| 24 79 3d 78 24 20 69 73 | 20 70 6c 6f 74 74 65 64 |$y=x$ is| plotted|
|00002400| 20 60 60 77 69 74 68 20 | 6c 69 6e 65 73 27 27 2c | ``with |lines'',|
|00002410| 20 77 68 69 63 68 20 69 | 73 20 74 68 65 20 64 65 | which i|s the de|
|00002420| 66 61 75 6c 74 20 70 6c | 6f 74 0a 73 74 79 6c 65 |fault pl|ot.style|
|00002430| 20 66 6f 72 20 66 75 6e | 63 74 69 6f 6e 73 2c 20 | for fun|ctions, |
|00002440| 61 6e 64 20 69 73 20 73 | 68 6f 77 6e 20 68 65 72 |and is s|hown her|
|00002450| 65 20 74 6f 20 69 6c 6c | 75 73 74 72 61 74 65 20 |e to ill|ustrate |
|00002460| 74 68 65 20 70 6c 6f 74 | 20 73 74 79 6c 65 0a 6f |the plot| style.o|
|00002470| 70 74 69 6f 6e 2e 20 20 | 54 68 65 20 64 61 74 61 |ption. |The data|
|00002480| 20 66 69 6c 65 20 7b 5c | 74 74 20 65 67 33 2e 64 | file {\|tt eg3.d|
|00002490| 61 74 7d 20 69 73 20 70 | 6c 6f 74 74 65 64 20 77 |at} is p|lotted w|
|000024a0| 69 74 68 20 73 74 79 6c | 65 20 7b 5c 74 74 0a 6c |ith styl|e {\tt.l|
|000024b0| 69 6e 65 73 70 6f 69 6e | 74 73 7d 2c 20 61 20 73 |inespoin|ts}, a s|
|000024c0| 74 79 6c 65 20 6c 69 6b | 65 20 7b 5c 74 74 20 6c |tyle lik|e {\tt l|
|000024d0| 69 6e 65 73 7d 20 74 68 | 61 74 20 61 6c 73 6f 20 |ines} th|at also |
|000024e0| 70 6c 6f 74 73 20 61 20 | 73 79 6d 62 6f 6c 20 61 |plots a |symbol a|
|000024f0| 74 0a 65 61 63 68 20 64 | 61 74 61 20 70 6f 69 6e |t.each d|ata poin|
|00002500| 74 2e 0a 0a 54 68 65 72 | 65 20 69 73 20 61 20 73 |t...Ther|e is a s|
|00002510| 74 79 6c 65 20 63 61 6c | 6c 65 64 20 7b 5c 74 74 |tyle cal|led {\tt|
|00002520| 20 70 6f 69 6e 74 73 7d | 20 74 68 61 74 20 6f 6e | points}| that on|
|00002530| 6c 79 20 70 6c 6f 74 73 | 20 74 68 65 20 73 79 6d |ly plots| the sym|
|00002540| 62 6f 6c 73 20 61 74 0a | 64 61 74 61 20 70 6f 69 |bols at.|data poi|
|00002550| 6e 74 73 2c 20 61 6e 64 | 20 61 6e 6f 74 68 65 72 |nts, and| another|
|00002560| 20 63 61 6c 6c 65 64 20 | 7b 5c 74 74 20 64 6f 74 | called |{\tt dot|
|00002570| 73 7d 20 74 68 61 74 20 | 70 6c 6f 74 73 20 61 20 |s} that |plots a |
|00002580| 74 69 6e 79 20 64 6f 74 | 20 66 6f 72 0a 65 61 63 |tiny dot| for.eac|
|00002590| 68 20 64 61 74 61 20 70 | 6f 69 6e 74 2e 20 20 54 |h data p|oint. T|
|000025a0| 68 65 20 7b 5c 74 74 20 | 70 6f 69 6e 74 73 7d 20 |he {\tt |points} |
|000025b0| 61 6e 64 20 7b 5c 74 74 | 20 6c 69 6e 65 73 70 6f |and {\tt| linespo|
|000025c0| 69 6e 74 73 7d 20 73 74 | 79 6c 65 73 0a 70 72 6f |ints} st|yles.pro|
|000025d0| 64 75 63 65 20 61 20 64 | 69 66 66 65 72 65 6e 74 |duce a d|ifferent|
|000025e0| 20 70 6f 69 6e 74 20 73 | 79 6d 62 6f 6c 20 66 6f | point s|ymbol fo|
|000025f0| 72 20 65 61 63 68 20 63 | 75 72 76 65 20 6f 6e 20 |r each c|urve on |
|00002600| 74 68 65 20 70 6c 6f 74 | 20 28 66 6f 72 20 75 70 |the plot| (for up|
|00002610| 20 74 6f 0a 74 77 65 6c | 76 65 20 73 79 6d 62 6f | to.twel|ve symbo|
|00002620| 6c 73 2c 20 61 66 74 65 | 72 20 77 68 69 63 68 20 |ls, afte|r which |
|00002630| 74 68 65 79 20 61 72 65 | 20 72 65 2d 75 73 65 64 |they are| re-used|
|00002640| 3b 20 73 65 65 0a 46 69 | 67 75 72 65 7e 5c 72 65 |; see.Fi|gure~\re|
|00002650| 66 7b 6c 69 6e 65 70 6f | 69 6e 74 7d 20 66 6f 72 |f{linepo|int} for|
|00002660| 20 61 20 63 6f 6d 70 6c | 65 74 65 20 6c 69 73 74 | a compl|ete list|
|00002670| 29 2e 20 54 68 65 20 7b | 5c 74 74 20 6c 69 6e 65 |). The {|\tt line|
|00002680| 73 7d 20 61 6e 64 20 7b | 5c 74 74 0a 6c 69 6e 65 |s} and {|\tt.line|
|00002690| 73 70 6f 69 6e 74 73 7d | 20 73 74 79 6c 65 73 20 |spoints}| styles |
|000026a0| 75 73 65 20 61 20 64 69 | 66 66 65 72 65 6e 74 20 |use a di|fferent |
|000026b0| 6c 69 6e 65 20 73 74 79 | 6c 65 20 66 6f 72 20 65 |line sty|le for e|
|000026c0| 61 63 68 20 63 75 72 76 | 65 20 6f 6e 20 74 68 65 |ach curv|e on the|
|000026d0| 0a 70 6c 6f 74 20 28 69 | 6e 20 74 68 69 73 20 65 |.plot (i|n this e|
|000026e0| 78 61 6d 70 6c 65 20 74 | 68 65 20 64 6f 74 73 20 |xample t|he dots |
|000026f0| 68 61 76 65 20 64 69 66 | 66 65 72 65 6e 74 20 73 |have dif|ferent s|
|00002700| 70 61 63 69 6e 67 29 2e | 20 54 68 65 0a 73 74 79 |pacing).| The.sty|
|00002710| 6c 65 20 7b 5c 74 74 20 | 69 6d 70 75 6c 73 65 73 |le {\tt |impulses|
|00002720| 7d 20 64 72 61 77 73 20 | 61 20 70 65 72 70 65 6e |} draws |a perpen|
|00002730| 64 69 63 75 6c 61 72 20 | 66 72 6f 6d 20 65 61 63 |dicular |from eac|
|00002740| 68 20 70 6f 69 6e 74 20 | 74 6f 20 74 68 65 0a 24 |h point |to the.$|
|00002750| 78 24 2d 61 78 69 73 2e | 20 46 69 6e 61 6c 6c 79 |x$-axis.| Finally|
|00002760| 2c 20 74 68 65 20 7b 5c | 74 74 20 65 72 72 6f 72 |, the {\|tt error|
|00002770| 62 61 72 73 7d 20 73 74 | 79 6c 65 20 63 61 6e 20 |bars} st|yle can |
|00002780| 64 72 61 77 20 65 72 72 | 6f 72 20 62 61 72 73 20 |draw err|or bars |
|00002790| 61 74 0a 65 61 63 68 20 | 64 61 74 61 20 70 6f 69 |at.each |data poi|
|000027a0| 6e 74 20 28 73 65 65 20 | 74 68 65 20 47 4e 55 50 |nt (see |the GNUP|
|000027b0| 4c 4f 54 20 6d 61 6e 75 | 61 6c 29 2e 0a 0a 5c 70 |LOT manu|al)...\p|
|000027c0| 61 72 61 67 72 61 70 68 | 7b 45 78 61 6d 70 6c 65 |aragraph|{Example|
|000027d0| 20 34 3a 7d 20 49 6e 20 | 74 68 65 20 61 62 6f 76 | 4:} In |the abov|
|000027e0| 65 20 70 6c 6f 74 73 20 | 6f 66 20 24 5c 73 69 6e |e plots |of $\sin|
|000027f0| 28 78 29 24 2c 20 69 74 | 20 77 6f 75 6c 64 20 6d |(x)$, it| would m|
|00002800| 61 6b 65 0a 6d 6f 72 65 | 20 73 65 6e 73 65 20 74 |ake.more| sense t|
|00002810| 6f 20 6c 61 62 65 6c 20 | 74 68 65 20 61 78 69 73 |o label |the axis|
|00002820| 20 69 6e 20 75 6e 69 74 | 73 20 6f 66 20 24 5c 70 | in unit|s of $\p|
|00002830| 69 24 2e 20 54 68 65 20 | 70 6f 73 69 74 69 6f 6e |i$. The |position|
|00002840| 20 61 6e 64 0a 6c 61 62 | 65 6c 73 20 6f 66 20 74 | and.lab|els of t|
|00002850| 68 65 20 74 69 63 20 6c | 61 62 65 6c 73 20 6d 61 |he tic l|abels ma|
|00002860| 79 20 62 65 20 73 70 65 | 63 69 66 69 65 64 20 62 |y be spe|cified b|
|00002870| 79 20 74 68 65 20 75 73 | 65 72 2c 20 77 69 74 68 |y the us|er, with|
|00002880| 20 74 68 65 20 7b 5c 74 | 74 0a 73 65 74 20 78 74 | the {\t|t.set xt|
|00002890| 69 63 73 7d 20 61 6e 64 | 20 7b 5c 74 74 20 73 65 |ics} and| {\tt se|
|000028a0| 74 20 79 74 69 63 73 7d | 20 63 6f 6d 6d 61 6e 64 |t ytics}| command|
|000028b0| 73 2e 20 54 68 69 73 20 | 69 73 20 64 65 6d 6f 6e |s. This |is demon|
|000028c0| 73 74 72 61 74 65 64 20 | 62 79 0a 74 68 65 20 66 |strated |by.the f|
|000028d0| 6f 6c 6c 6f 77 69 6e 67 | 20 65 78 61 6d 70 6c 65 |ollowing| example|
|000028e0| 2c 20 73 68 6f 77 6e 20 | 69 6e 20 46 69 67 75 72 |, shown |in Figur|
|000028f0| 65 7e 5c 72 65 66 7b 65 | 67 34 7d 2e 0a 0a 5c 73 |e~\ref{e|g4}...\s|
|00002900| 69 6e 67 6c 65 73 70 61 | 63 65 0a 5c 62 65 67 69 |inglespa|ce.\begi|
|00002910| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0a 20 20 20 20 |n{verbat|im}. |
|00002920| 73 65 74 20 74 65 72 6d | 69 6e 61 6c 20 6c 61 74 |set term|inal lat|
|00002930| 65 78 0a 20 20 20 20 73 | 65 74 20 6f 75 74 70 75 |ex. s|et outpu|
|00002940| 74 20 22 65 67 34 2e 74 | 65 78 22 0a 20 20 20 20 |t "eg4.t|ex". |
|00002950| 73 65 74 20 66 6f 72 6d | 61 74 20 79 20 22 24 25 |set form|at y "$%|
|00002960| 67 24 22 0a 20 20 20 20 | 73 65 74 20 66 6f 72 6d |g$". |set form|
|00002970| 61 74 20 78 20 22 24 25 | 2e 32 66 24 22 0a 20 20 |at x "$%|.2f$". |
|00002980| 20 20 73 65 74 20 74 69 | 74 6c 65 20 22 54 68 69 | set ti|tle "Thi|
|00002990| 73 20 69 73 20 24 5c 73 | 69 6e 28 78 29 24 22 0a |s is $\s|in(x)$".|
|000029a0| 20 20 20 20 73 65 74 20 | 78 6c 61 62 65 6c 20 22 | set |xlabel "|
|000029b0| 54 68 69 73 20 69 73 20 | 74 68 65 20 24 78 24 20 |This is |the $x$ |
|000029c0| 61 78 69 73 22 0a 20 20 | 20 20 73 65 74 20 79 6c |axis". | set yl|
|000029d0| 61 62 65 6c 20 22 24 5c | 73 69 6e 28 78 29 24 22 |abel "$\|sin(x)$"|
|000029e0| 0a 20 20 20 20 73 65 74 | 20 6e 6f 6b 65 79 0a 20 |. set| nokey. |
|000029f0| 20 20 20 73 65 74 20 78 | 74 69 63 73 20 2d 70 69 | set x|tics -pi|
|00002a00| 2c 20 70 69 2f 34 0a 20 | 20 20 20 70 6c 6f 74 20 |, pi/4. | plot |
|00002a10| 5b 2d 70 69 3a 70 69 5d | 20 5b 2d 31 3a 31 5d 20 |[-pi:pi]| [-1:1] |
|00002a20| 73 69 6e 28 78 29 0a 5c | 65 6e 64 7b 76 65 72 62 |sin(x).\|end{verb|
|00002a30| 61 74 69 6d 7d 0a 5c 63 | 75 72 72 65 6e 74 73 70 |atim}.\c|urrentsp|
|00002a40| 61 63 65 0a 0a 5c 62 6f | 78 66 69 67 75 72 65 7b |ace..\bo|xfigure{|
|00002a50| 68 74 62 70 7d 7b 5c 66 | 75 6c 6c 62 6f 78 77 69 |htbp}{\f|ullboxwi|
|00002a60| 64 74 68 7d 7b 0a 20 20 | 5c 62 65 67 69 6e 7b 63 |dth}{. |\begin{c|
|00002a70| 65 6e 74 65 72 7d 0a 20 | 20 20 20 5c 69 6e 70 75 |enter}. | \inpu|
|00002a80| 74 7b 65 67 34 7d 0a 20 | 20 5c 65 6e 64 7b 63 65 |t{eg4}. | \end{ce|
|00002a90| 6e 74 65 72 7d 0a 20 20 | 5c 63 61 70 74 69 6f 6e |nter}. |\caption|
|00002aa0| 7b 41 6e 20 65 78 61 6d | 70 6c 65 20 6f 66 20 74 |{An exam|ple of t|
|00002ab0| 68 65 20 7b 5c 74 74 20 | 73 65 74 20 78 74 69 63 |he {\tt |set xtic|
|00002ac0| 73 7d 20 63 6f 6d 6d 61 | 6e 64 2e 7d 0a 20 20 5c |s} comma|nd.}. \|
|00002ad0| 6c 61 62 65 6c 7b 65 67 | 34 7d 0a 7d 0a 0a 53 69 |label{eg|4}.}..Si|
|00002ae0| 6e 63 65 20 7b 5c 74 74 | 20 70 69 7d 20 69 73 20 |nce {\tt| pi} is |
|00002af0| 61 20 70 72 65 64 65 66 | 69 6e 65 64 20 76 61 72 |a predef|ined var|
|00002b00| 69 61 62 6c 65 20 69 6e | 20 47 4e 55 50 4c 4f 54 |iable in| GNUPLOT|
|00002b10| 2c 20 77 65 20 63 61 6e | 20 75 73 65 20 69 74 0a |, we can| use it.|
|00002b20| 61 6e 79 77 68 65 72 65 | 20 77 65 20 6d 61 79 20 |anywhere| we may |
|00002b30| 75 73 65 20 61 6e 20 65 | 78 70 72 65 73 73 69 6f |use an e|xpressio|
|00002b40| 6e 2e 20 54 68 65 20 7b | 5c 74 74 20 73 65 74 20 |n. The {|\tt set |
|00002b50| 78 74 69 63 73 7d 20 63 | 6f 6d 6d 61 6e 64 20 68 |xtics} c|ommand h|
|00002b60| 65 72 65 0a 73 70 65 63 | 69 66 69 65 73 20 74 68 |ere.spec|ifies th|
|00002b70| 61 74 20 74 68 65 20 74 | 69 63 73 20 6f 6e 20 74 |at the t|ics on t|
|00002b80| 68 65 20 24 78 24 20 61 | 78 69 73 20 73 74 61 72 |he $x$ a|xis star|
|00002b90| 74 20 61 74 20 24 2d 5c | 70 69 24 20 61 6e 64 20 |t at $-\|pi$ and |
|00002ba0| 69 6e 63 72 65 6d 65 6e | 74 0a 62 79 20 24 5c 70 |incremen|t.by $\p|
|00002bb0| 69 2f 34 24 2e 20 53 69 | 6e 63 65 20 6e 6f 20 65 |i/4$. Si|nce no e|
|00002bc0| 6e 64 20 70 6f 69 6e 74 | 20 69 73 20 67 69 76 65 |nd point| is give|
|00002bd0| 6e 2c 20 74 68 65 20 74 | 69 63 73 20 63 6f 6e 74 |n, the t|ics cont|
|00002be0| 69 6e 75 65 20 74 6f 20 | 74 68 65 0a 72 69 67 68 |inue to |the.righ|
|00002bf0| 74 20 65 64 67 65 2e 20 | 57 65 20 68 61 76 65 20 |t edge. |We have |
|00002c00| 61 6c 73 6f 20 74 75 72 | 6e 65 64 20 6f 66 66 20 |also tur|ned off |
|00002c10| 74 68 65 20 6b 65 79 2c | 20 61 6e 64 20 63 68 61 |the key,| and cha|
|00002c20| 6e 67 65 64 20 74 68 65 | 20 66 6f 72 6d 61 74 20 |nged the| format |
|00002c30| 74 6f 0a 72 65 73 74 72 | 69 63 74 20 74 68 65 20 |to.restr|ict the |
|00002c40| 24 78 24 2d 61 78 69 73 | 20 74 69 63 20 6c 61 62 |$x$-axis| tic lab|
|00002c50| 65 6c 73 20 74 6f 20 32 | 20 64 65 63 69 6d 61 6c |els to 2| decimal|
|00002c60| 20 70 6c 61 63 65 73 2e | 0a 0a 57 69 74 68 20 61 | places.|..With a|
|00002c70| 20 6c 69 74 74 6c 65 20 | 6d 6f 72 65 20 77 6f 72 | little |more wor|
|00002c80| 6b 2c 20 74 68 65 20 70 | 6c 6f 74 20 63 61 6e 20 |k, the p|lot can |
|00002c90| 6c 6f 6f 6b 20 65 76 65 | 6e 20 62 65 74 74 65 72 |look eve|n better|
|00002ca0| 2e 20 20 41 6e 6f 74 68 | 65 72 20 66 6f 72 6d 0a |. Anoth|er form.|
|00002cb0| 6f 66 20 74 68 69 73 20 | 63 6f 6d 6d 61 6e 64 20 |of this |command |
|00002cc0| 61 6c 6c 6f 77 73 20 75 | 73 20 74 6f 20 73 70 65 |allows u|s to spe|
|00002cd0| 63 69 66 79 20 74 68 65 | 20 6c 61 62 65 6c 20 61 |cify the| label a|
|00002ce0| 6e 64 20 70 6f 73 69 74 | 69 6f 6e 20 6f 66 20 65 |nd posit|ion of e|
|00002cf0| 61 63 68 0a 74 69 63 20 | 69 6e 64 69 76 69 64 75 |ach.tic |individu|
|00002d00| 61 6c 6c 79 2e 20 20 52 | 65 70 6c 61 63 69 6e 67 |ally. R|eplacing|
|00002d10| 20 74 68 65 20 61 62 6f | 76 65 20 7b 5c 74 74 20 | the abo|ve {\tt |
|00002d20| 73 65 74 20 78 74 69 63 | 73 7d 20 63 6f 6d 6d 61 |set xtic|s} comma|
|00002d30| 6e 64 20 77 69 74 68 0a | 74 68 65 20 66 6f 6c 6c |nd with.|the foll|
|00002d40| 6f 77 69 6e 67 20 67 69 | 76 65 73 20 75 73 20 46 |owing gi|ves us F|
|00002d50| 69 67 75 72 65 7e 5c 72 | 65 66 7b 65 67 35 7d 2e |igure~\r|ef{eg5}.|
|00002d60| 20 57 65 20 61 6c 73 6f | 20 6d 61 6b 65 20 75 73 | We also| make us|
|00002d70| 65 20 6f 66 20 74 68 65 | 20 6c 69 6e 65 0a 63 6f |e of the| line.co|
|00002d80| 6e 74 69 6e 75 61 74 69 | 6f 6e 20 63 68 61 72 61 |ntinuati|on chara|
|00002d90| 63 74 65 72 2c 20 74 68 | 65 20 62 61 63 6b 73 6c |cter, th|e backsl|
|00002da0| 61 73 68 20 28 5c 76 65 | 72 62 2b 5c 2b 29 2c 20 |ash (\ve|rb+\+), |
|00002db0| 74 6f 20 73 70 72 65 61 | 64 20 6f 75 74 20 74 68 |to sprea|d out th|
|00002dc0| 69 73 0a 63 6f 6d 6d 61 | 6e 64 20 66 6f 72 20 72 |is.comma|nd for r|
|00002dd0| 65 61 64 61 62 69 6c 69 | 74 79 2e 0a 0a 5c 73 69 |eadabili|ty...\si|
|00002de0| 6e 67 6c 65 73 70 61 63 | 65 0a 5c 62 65 67 69 6e |nglespac|e.\begin|
|00002df0| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 20 20 20 20 73 |{verbati|m}. s|
|00002e00| 65 74 20 78 74 69 63 73 | 20 28 22 24 2d 5c 70 69 |et xtics| ("$-\pi|
|00002e10| 24 22 20 2d 70 69 2c 5c | 0a 20 20 20 20 20 22 24 |$" -pi,\|. "$|
|00002e20| 2d 5c 66 72 61 63 7b 5c | 70 69 7d 7b 32 7d 24 22 |-\frac{\|pi}{2}$"|
|00002e30| 20 2d 70 69 2f 32 2c 5c | 0a 20 20 20 20 20 22 30 | -pi/2,\|. "0|
|00002e40| 22 20 30 2c 5c 0a 20 20 | 20 20 20 22 24 5c 66 72 |" 0,\. | "$\fr|
|00002e50| 61 63 7b 5c 70 69 7d 7b | 32 7d 24 22 20 70 69 2f |ac{\pi}{|2}$" pi/|
|00002e60| 32 2c 5c 0a 20 20 20 20 | 20 22 24 5c 70 69 24 22 |2,\. | "$\pi$"|
|00002e70| 20 70 69 29 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 | pi).\en|d{verbat|
|00002e80| 69 6d 7d 0a 5c 63 75 72 | 72 65 6e 74 73 70 61 63 |im}.\cur|rentspac|
|00002e90| 65 0a 0a 5c 62 6f 78 66 | 69 67 75 72 65 7b 68 74 |e..\boxf|igure{ht|
|00002ea0| 62 70 7d 7b 5c 66 75 6c | 6c 62 6f 78 77 69 64 74 |bp}{\ful|lboxwidt|
|00002eb0| 68 7d 7b 0a 20 20 5c 62 | 65 67 69 6e 7b 63 65 6e |h}{. \b|egin{cen|
|00002ec0| 74 65 72 7d 0a 20 20 20 | 20 5c 69 6e 70 75 74 7b |ter}. | \input{|
|00002ed0| 65 67 35 7d 0a 20 20 5c | 65 6e 64 7b 63 65 6e 74 |eg5}. \|end{cent|
|00002ee0| 65 72 7d 0a 20 20 5c 63 | 61 70 74 69 6f 6e 7b 41 |er}. \c|aption{A|
|00002ef0| 20 66 61 6e 63 79 20 65 | 78 61 6d 70 6c 65 20 6f | fancy e|xample o|
|00002f00| 66 20 74 68 65 20 7b 5c | 74 74 20 73 65 74 20 78 |f the {\|tt set x|
|00002f10| 74 69 63 73 7d 20 63 6f | 6d 6d 61 6e 64 2e 7d 0a |tics} co|mmand.}.|
|00002f20| 20 20 5c 6c 61 62 65 6c | 7b 65 67 35 7d 0a 7d 0a | \label|{eg5}.}.|
|00002f30| 0a 5c 70 61 72 61 67 72 | 61 70 68 7b 47 6f 69 6e |.\paragr|aph{Goin|
|00002f40| 67 20 66 75 72 74 68 65 | 72 3a 7d 20 59 6f 75 20 |g furthe|r:} You |
|00002f50| 73 68 6f 75 6c 64 20 6e | 6f 77 20 62 65 20 61 62 |should n|ow be ab|
|00002f60| 6c 65 20 74 6f 20 6d 61 | 6b 65 20 61 20 76 61 72 |le to ma|ke a var|
|00002f70| 69 65 74 79 20 6f 66 0a | 70 6c 6f 74 73 20 66 6f |iety of.|plots fo|
|00002f80| 72 20 79 6f 75 72 20 5c | 4c 61 54 65 58 5c 20 64 |r your \|LaTeX\ d|
|00002f90| 6f 63 75 6d 65 6e 74 2e | 20 57 65 20 77 69 6c 6c |ocument.| We will|
|00002fa0| 20 70 72 65 73 65 6e 74 | 20 61 20 66 69 6e 61 6c | present| a final|
|00002fb0| 20 65 78 61 6d 70 6c 65 | 0a 77 69 74 68 6f 75 74 | example|.without|
|00002fc0| 20 65 78 70 6c 61 6e 61 | 74 69 6f 6e 20 74 68 61 | explana|tion tha|
|00002fd0| 74 20 73 68 6f 77 63 61 | 73 65 73 20 73 6f 6d 65 |t showca|ses some|
|00002fe0| 20 6f 66 20 74 68 65 20 | 63 61 70 61 62 69 6c 69 | of the |capabili|
|00002ff0| 74 69 65 73 20 6f 66 0a | 47 4e 55 50 4c 4f 54 2e |ties of.|GNUPLOT.|
|00003000| 20 59 6f 75 20 6d 61 79 | 20 66 69 6e 64 20 64 6f | You may| find do|
|00003010| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 66 6f 72 20 |cumentat|ion for |
|00003020| 74 68 65 20 76 61 72 69 | 6f 75 73 20 63 6f 6d 6d |the vari|ous comm|
|00003030| 61 6e 64 73 20 69 6e 20 | 74 68 65 0a 47 4e 55 50 |ands in |the.GNUP|
|00003040| 4c 4f 54 20 6d 61 6e 75 | 61 6c 2c 20 74 68 6f 75 |LOT manu|al, thou|
|00003050| 67 68 20 68 6f 70 65 66 | 75 6c 6c 79 20 74 68 69 |gh hopef|ully thi|
|00003060| 73 20 65 78 61 6d 70 6c | 65 20 69 73 20 73 6f 6d |s exampl|e is som|
|00003070| 65 77 68 61 74 0a 73 65 | 6c 66 2d 65 78 70 6c 61 |ewhat.se|lf-expla|
|00003080| 6e 61 74 6f 72 79 2e 20 | 54 68 69 73 20 69 73 20 |natory. |This is |
|00003090| 73 68 6f 77 6e 20 69 6e | 20 46 69 67 75 72 65 7e |shown in| Figure~|
|000030a0| 5c 72 65 66 7b 65 67 36 | 7d 2e 0a 0a 5c 73 69 6e |\ref{eg6|}...\sin|
|000030b0| 67 6c 65 73 70 61 63 65 | 0a 5c 62 65 67 69 6e 7b |glespace|.\begin{|
|000030c0| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 20 73 65 |verbatim|}. se|
|000030d0| 74 20 74 65 72 6d 69 6e | 61 6c 20 6c 61 74 65 78 |t termin|al latex|
|000030e0| 0a 20 20 20 20 73 65 74 | 20 6f 75 74 70 75 74 20 |. set| output |
|000030f0| 22 65 67 36 2e 74 65 78 | 22 0a 20 20 20 20 73 65 |"eg6.tex|". se|
|00003100| 74 20 73 69 7a 65 20 33 | 2e 35 2f 35 2c 20 33 2f |t size 3|.5/5, 3/|
|00003110| 33 2e 0a 20 20 20 20 73 | 65 74 20 66 6f 72 6d 61 |3.. s|et forma|
|00003120| 74 20 79 20 22 24 25 67 | 24 22 0a 20 20 20 20 73 |t y "$%g|$". s|
|00003130| 65 74 20 66 6f 72 6d 61 | 74 20 78 20 22 24 25 35 |et forma|t x "$%5|
|00003140| 2e 31 66 5c 6d 75 24 22 | 0a 20 20 20 20 73 65 74 |.1f\mu$"|. set|
|00003150| 20 74 69 74 6c 65 20 22 | 54 68 69 73 20 69 73 20 | title "|This is |
|00003160| 61 20 74 69 74 6c 65 22 | 0a 20 20 20 20 73 65 74 |a title"|. set|
|00003170| 20 78 6c 61 62 65 6c 20 | 22 54 68 69 73 20 69 73 | xlabel |"This is|
|00003180| 20 74 68 65 20 24 78 24 | 20 61 78 69 73 22 0a 20 | the $x$| axis". |
|00003190| 20 20 20 73 65 74 20 79 | 6c 61 62 65 6c 20 22 54 | set y|label "T|
|000031a0| 68 69 73 20 69 73 5c 5c | 61 20 6c 6f 6e 67 65 72 |his is\\|a longer|
|000031b0| 5c 5c 76 65 72 73 69 6f | 6e 5c 5c 20 6f 66 5c 5c |\\versio|n\\ of\\|
|000031c0| 74 68 65 20 24 79 24 5c | 5c 20 61 78 69 73 22 0a |the $y$\|\ axis".|
|000031d0| 20 20 20 20 73 65 74 20 | 6c 61 62 65 6c 20 22 44 | set |label "D|
|000031e0| 61 74 61 22 20 61 74 20 | 2d 35 2c 2d 35 20 72 69 |ata" at |-5,-5 ri|
|000031f0| 67 68 74 0a 20 20 20 20 | 73 65 74 20 61 72 72 6f |ght. |set arro|
|00003200| 77 20 66 72 6f 6d 20 2d | 35 2c 2d 35 20 74 6f 20 |w from -|5,-5 to |
|00003210| 2d 33 2e 33 2c 2d 36 2e | 37 0a 20 20 20 20 73 65 |-3.3,-6.|7. se|
|00003220| 74 20 6b 65 79 20 2d 34 | 2c 38 0a 20 20 20 20 73 |t key -4|,8. s|
|00003230| 65 74 20 78 74 69 63 20 | 2d 31 30 2c 35 2c 31 30 |et xtic |-10,5,10|
|00003240| 0a 20 20 20 20 70 6c 6f | 74 20 5b 2d 31 30 3a 31 |. plo|t [-10:1|
|00003250| 30 5d 20 5b 2d 31 30 3a | 31 30 5d 20 22 65 67 33 |0] [-10:|10] "eg3|
|00003260| 2e 64 61 74 22 20 74 69 | 74 6c 65 20 22 44 61 74 |.dat" ti|tle "Dat|
|00003270| 61 20 46 69 6c 65 22 20 | 20 77 69 74 68 20 6c 69 |a File" | with li|
|00003280| 6e 65 73 70 6f 69 6e 74 | 73 20 31 20 37 2c 5c 0a |nespoint|s 1 7,\.|
|00003290| 20 20 20 20 20 20 20 33 | 2a 65 78 70 28 2d 78 2a | 3|*exp(-x*|
|000032a0| 78 29 2b 31 20 20 74 69 | 74 6c 65 20 22 24 33 65 |x)+1 ti|tle "$3e|
|000032b0| 5e 7b 2d 78 5e 7b 32 7d | 7d 2b 31 24 22 20 77 69 |^{-x^{2}|}+1$" wi|
|000032c0| 74 68 20 6c 69 6e 65 73 | 20 34 0a 5c 65 6e 64 7b |th lines| 4.\end{|
|000032d0| 76 65 72 62 61 74 69 6d | 7d 0a 5c 63 75 72 72 65 |verbatim|}.\curre|
|000032e0| 6e 74 73 70 61 63 65 0a | 0a 5c 62 6f 78 66 69 67 |ntspace.|.\boxfig|
|000032f0| 75 72 65 7b 68 74 62 70 | 7d 7b 5c 66 75 6c 6c 62 |ure{htbp|}{\fullb|
|00003300| 6f 78 77 69 64 74 68 7d | 7b 0a 20 20 5c 62 65 67 |oxwidth}|{. \beg|
|00003310| 69 6e 7b 63 65 6e 74 65 | 72 7d 0a 20 20 20 20 5c |in{cente|r}. \|
|00003320| 69 6e 70 75 74 7b 65 67 | 36 7d 0a 20 20 5c 65 6e |input{eg|6}. \en|
|00003330| 64 7b 63 65 6e 74 65 72 | 7d 0a 20 20 5c 63 61 70 |d{center|}. \cap|
|00003340| 74 69 6f 6e 7b 41 6e 20 | 65 78 61 6d 70 6c 65 20 |tion{An |example |
|00003350| 6f 66 20 6d 61 6e 79 20 | 66 65 61 74 75 72 65 73 |of many |features|
|00003360| 2e 7d 0a 20 20 5c 6c 61 | 62 65 6c 7b 65 67 36 7d |.}. \la|bel{eg6}|
|00003370| 0a 7d 0a 0a 5c 70 61 72 | 61 67 72 61 70 68 7b 4c |.}..\par|agraph{L|
|00003380| 69 6e 65 20 61 6e 64 20 | 70 6f 69 6e 74 20 74 79 |ine and |point ty|
|00003390| 70 65 73 3a 7d 20 46 6f | 72 20 72 65 66 65 72 65 |pes:} Fo|r refere|
|000033a0| 6e 63 65 2c 20 77 65 20 | 73 68 6f 77 20 61 6c 6c |nce, we |show all|
|000033b0| 20 6f 66 20 74 68 65 0a | 6c 69 6e 65 20 61 6e 64 | of the.|line and|
|000033c0| 20 70 6f 69 6e 74 20 74 | 79 70 65 73 20 61 76 61 | point t|ypes ava|
|000033d0| 69 6c 61 62 6c 65 20 69 | 6e 20 46 69 67 75 72 65 |ilable i|n Figure|
|000033e0| 7e 5c 72 65 66 7b 6c 69 | 6e 65 70 6f 69 6e 74 7d |~\ref{li|nepoint}|
|000033f0| 2e 0a 0a 5c 62 6f 78 66 | 69 67 75 72 65 7b 68 74 |...\boxf|igure{ht|
|00003400| 62 70 7d 7b 5c 66 75 6c | 6c 62 6f 78 77 69 64 74 |bp}{\ful|lboxwidt|
|00003410| 68 7d 7b 0a 20 20 5c 62 | 65 67 69 6e 7b 63 65 6e |h}{. \b|egin{cen|
|00003420| 74 65 72 7d 0a 20 20 20 | 20 5c 69 6e 70 75 74 7b |ter}. | \input{|
|00003430| 6c 69 6e 65 70 6f 69 6e | 7d 0a 20 20 5c 65 6e 64 |linepoin|}. \end|
|00003440| 7b 63 65 6e 74 65 72 7d | 0a 20 20 5c 63 61 70 74 |{center}|. \capt|
|00003450| 69 6f 6e 7b 41 6c 6c 20 | 6f 66 20 74 68 65 20 6c |ion{All |of the l|
|00003460| 69 6e 65 20 61 6e 64 20 | 70 6f 69 6e 74 20 74 79 |ine and |point ty|
|00003470| 70 65 73 20 69 6e 20 74 | 68 65 20 5c 4c 61 54 65 |pes in t|he \LaTe|
|00003480| 58 5c 20 64 72 69 76 65 | 72 2e 7d 0a 20 20 5c 6c |X\ drive|r.}. \l|
|00003490| 61 62 65 6c 7b 6c 69 6e | 65 70 6f 69 6e 74 7d 0a |abel{lin|epoint}.|
|000034a0| 7d 0a 0a 5c 73 75 62 73 | 65 63 74 69 6f 6e 7b 53 |}..\subs|ection{S|
|000034b0| 75 6d 6d 61 72 79 20 2d | 2d 2d 20 55 73 65 20 77 |ummary -|-- Use w|
|000034c0| 69 74 68 20 5c 4c 61 54 | 65 58 7d 0a 49 6e 20 73 |ith \LaT|eX}.In s|
|000034d0| 75 6d 6d 61 72 79 2c 20 | 74 6f 20 75 73 65 20 74 |ummary, |to use t|
|000034e0| 68 65 20 5c 4c 61 54 65 | 58 5c 20 66 61 63 69 6c |he \LaTe|X\ facil|
|000034f0| 69 74 69 65 73 20 6f 66 | 20 47 4e 55 50 4c 4f 54 |ities of| GNUPLOT|
|00003500| 2c 20 74 68 65 20 66 69 | 72 73 74 0a 63 6f 6d 6d |, the fi|rst.comm|
|00003510| 61 6e 64 20 74 6f 20 47 | 4e 55 50 4c 4f 54 20 73 |and to G|NUPLOT s|
|00003520| 68 6f 75 6c 64 20 62 65 | 0a 5c 62 65 67 69 6e 7b |hould be|.\begin{|
|00003530| 73 79 6e 74 61 78 7d 0a | 20 20 20 20 73 65 74 20 |syntax}.| set |
|00003540| 74 65 72 6d 69 6e 61 6c | 20 6c 61 74 65 78 0a 5c |terminal| latex.\|
|00003550| 65 6e 64 7b 73 79 6e 74 | 61 78 7d 0a 61 6e 64 20 |end{synt|ax}.and |
|00003560| 74 68 65 20 6f 75 74 70 | 75 74 20 6f 66 20 47 4e |the outp|ut of GN|
|00003570| 55 50 4c 4f 54 20 73 68 | 6f 75 6c 64 20 62 65 20 |UPLOT sh|ould be |
|00003580| 64 69 72 65 63 74 65 64 | 20 74 6f 20 61 20 66 69 |directed| to a fi|
|00003590| 6c 65 2c 20 66 6f 72 20 | 65 78 61 6d 70 6c 65 2c |le, for |example,|
|000035a0| 0a 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |.\begin{|verbatim|
|000035b0| 7d 0a 20 20 20 20 73 65 | 74 20 6f 75 74 70 75 74 |}. se|t output|
|000035c0| 20 22 70 6c 6f 74 2e 74 | 65 78 22 0a 5c 65 6e 64 | "plot.t|ex".\end|
|000035d0| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 54 68 69 73 20 |{verbati|m}.This |
|000035e0| 6d 61 79 20 62 65 20 61 | 6e 79 74 68 69 6e 67 20 |may be a|nything |
|000035f0| 79 6f 75 20 6c 69 6b 65 | 20 62 75 74 20 69 74 20 |you like| but it |
|00003600| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 61 20 7b 5c |should h|ave a {\|
|00003610| 74 74 20 2e 74 65 78 7d | 20 65 78 74 65 6e 73 69 |tt .tex}| extensi|
|00003620| 6f 6e 2c 0a 6f 66 20 63 | 6f 75 72 73 65 2e 20 54 |on,.of c|ourse. T|
|00003630| 68 65 6e 20 74 68 65 20 | 73 69 7a 65 20 6f 66 20 |hen the |size of |
|00003640| 74 68 65 20 70 6c 6f 74 | 20 73 68 6f 75 6c 64 20 |the plot| should |
|00003650| 62 65 20 67 69 76 65 6e | 2e 20 46 6f 72 20 65 78 |be given|. For ex|
|00003660| 61 6d 70 6c 65 2c 20 74 | 68 65 0a 63 6f 6d 6d 61 |ample, t|he.comma|
|00003670| 6e 64 0a 5c 62 65 67 69 | 6e 7b 76 65 72 62 61 74 |nd.\begi|n{verbat|
|00003680| 69 6d 7d 0a 20 20 20 20 | 73 65 74 20 73 69 7a 65 |im}. |set size|
|00003690| 20 31 2c 32 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 | 1,2.\en|d{verbat|
|000036a0| 69 6d 7d 0a 74 65 6c 6c | 73 20 47 4e 55 50 4c 4f |im}.tell|s GNUPLO|
|000036b0| 54 20 74 6f 20 75 73 65 | 20 61 20 35 20 69 6e 63 |T to use| a 5 inc|
|000036c0| 68 20 77 69 64 65 20 62 | 79 20 36 20 69 6e 63 68 |h wide b|y 6 inch|
|000036d0| 20 68 69 67 68 20 62 6f | 78 20 66 6f 72 20 74 68 | high bo|x for th|
|000036e0| 65 20 70 6c 6f 74 2e 0a | 54 68 65 20 6e 75 6d 62 |e plot..|The numb|
|000036f0| 65 72 73 20 67 69 76 65 | 6e 20 61 72 65 20 7b 5c |ers give|n are {\|
|00003700| 65 6d 20 73 63 61 6c 65 | 20 66 61 63 74 6f 72 73 |em scale| factors|
|00003710| 7d 2c 20 6e 6f 74 20 74 | 68 65 20 61 63 74 75 61 |}, not t|he actua|
|00003720| 6c 20 73 69 7a 65 2e 20 | 20 54 68 65 0a 64 65 66 |l size. | The.def|
|00003730| 61 75 6c 74 20 69 73 20 | 35 20 69 6e 63 68 65 73 |ault is |5 inches|
|00003740| 20 62 79 20 33 20 69 6e | 63 68 65 73 2e 20 20 54 | by 3 in|ches. T|
|00003750| 68 69 73 20 69 73 20 74 | 68 65 20 73 69 7a 65 20 |his is t|he size |
|00003760| 6f 66 20 74 68 65 20 63 | 6f 6d 70 6c 65 74 65 0a |of the c|omplete.|
|00003770| 70 6c 6f 74 2c 20 69 6e | 63 6c 75 64 69 6e 67 20 |plot, in|cluding |
|00003780| 61 6c 6c 20 6c 61 62 65 | 6c 73 2e 0a 0a 57 68 65 |all labe|ls...Whe|
|00003790| 6e 20 66 69 6e 69 73 68 | 65 64 2c 20 74 68 65 20 |n finish|ed, the |
|000037a0| 66 69 6c 65 20 77 69 6c | 6c 20 63 6f 6e 74 61 69 |file wil|l contai|
|000037b0| 6e 20 61 6c 6c 20 6f 66 | 20 74 68 65 20 70 6c 6f |n all of| the plo|
|000037c0| 74 73 20 79 6f 75 20 68 | 61 76 65 0a 73 70 65 63 |ts you h|ave.spec|
|000037d0| 69 66 69 65 64 20 28 79 | 6f 75 20 70 72 6f 62 61 |ified (y|ou proba|
|000037e0| 62 6c 79 20 6f 6e 6c 79 | 20 77 61 6e 74 20 6f 6e |bly only| want on|
|000037f0| 65 20 70 6c 6f 74 20 70 | 65 72 20 66 69 6c 65 29 |e plot p|er file)|
|00003800| 2e 20 54 68 69 73 20 66 | 69 6c 65 20 63 61 6e 0a |. This f|ile can.|
|00003810| 74 68 65 6e 20 62 65 20 | 75 73 65 64 20 69 6e 20 |then be |used in |
|00003820| 61 20 5c 4c 61 54 65 58 | 5c 20 64 6f 63 75 6d 65 |a \LaTeX|\ docume|
|00003830| 6e 74 2c 20 5c 65 67 2c | 0a 0a 5c 73 69 6e 67 6c |nt, \eg,|..\singl|
|00003840| 65 73 70 61 63 65 0a 5c | 62 65 67 69 6e 7b 76 65 |espace.\|begin{ve|
|00003850| 72 62 61 74 69 6d 7d 0a | 20 20 20 20 5c 62 65 67 |rbatim}.| \beg|
|00003860| 69 6e 20 7b 66 69 67 75 | 72 65 7d 0a 20 20 20 20 |in {figu|re}. |
|00003870| 20 20 5c 62 65 67 69 6e | 7b 63 65 6e 74 65 72 7d | \begin|{center}|
|00003880| 0a 20 20 20 20 20 20 20 | 20 5c 69 6e 70 75 74 7b |. | \input{|
|00003890| 70 6c 6f 74 7d 0a 20 20 | 20 20 20 20 5c 65 6e 64 |plot}. | \end|
|000038a0| 7b 63 65 6e 74 65 72 7d | 0a 20 20 20 20 5c 65 6e |{center}|. \en|
|000038b0| 64 20 7b 66 69 67 75 72 | 65 7d 0a 5c 65 6e 64 7b |d {figur|e}.\end{|
|000038c0| 76 65 72 62 61 74 69 6d | 7d 0a 5c 63 75 72 72 65 |verbatim|}.\curre|
|000038d0| 6e 74 73 70 61 63 65 0a | 54 68 69 73 20 70 75 74 |ntspace.|This put|
|000038e0| 73 20 74 68 65 20 70 6c | 6f 74 20 69 6e 74 6f 20 |s the pl|ot into |
|000038f0| 61 20 66 69 67 75 72 65 | 2e 0a 0a 59 6f 75 20 77 |a figure|...You w|
|00003900| 69 6c 6c 20 61 6c 73 6f | 20 77 61 6e 74 20 74 6f |ill also| want to|
|00003910| 20 72 65 61 64 20 61 62 | 6f 75 74 20 74 68 65 20 | read ab|out the |
|00003920| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 6f 6d 6d 61 6e |followin|g comman|
|00003930| 64 73 3a 20 7b 5c 74 74 | 20 73 65 74 0a 74 69 74 |ds: {\tt| set.tit|
|00003940| 6c 65 2c 20 73 65 74 20 | 78 6c 61 62 65 6c 2c 20 |le, set |xlabel, |
|00003950| 73 65 74 20 79 6c 61 62 | 65 6c 2c 20 73 65 74 20 |set ylab|el, set |
|00003960| 6b 65 79 2c 20 73 65 74 | 20 6c 61 62 65 6c 2c 20 |key, set| label, |
|00003970| 73 65 74 20 78 74 69 63 | 73 2c 20 73 65 74 0a 79 |set xtic|s, set.y|
|00003980| 74 69 63 73 7d 2c 20 61 | 6e 64 20 7b 5c 74 74 20 |tics}, a|nd {\tt |
|00003990| 73 65 74 20 63 6c 69 70 | 7d 2e 20 20 54 68 65 73 |set clip|}. Thes|
|000039a0| 65 20 61 72 65 20 61 6c | 6c 20 64 65 73 63 72 69 |e are al|l descri|
|000039b0| 62 65 64 20 69 6e 20 74 | 68 65 20 72 65 67 75 6c |bed in t|he regul|
|000039c0| 61 72 0a 47 4e 55 50 4c | 4f 54 20 6d 61 6e 75 61 |ar.GNUPL|OT manua|
|000039d0| 6c 2e 0a 0a 5c 73 65 63 | 74 69 6f 6e 7b 55 73 65 |l...\sec|tion{Use|
|000039e0| 20 77 69 74 68 20 45 45 | 50 49 43 7d 0a 5c 6c 61 | with EE|PIC}.\la|
|000039f0| 62 65 6c 7b 73 3a 65 65 | 70 69 63 7d 0a 45 45 50 |bel{s:ee|pic}.EEP|
|00003a00| 49 43 20 69 73 20 61 20 | 6d 61 63 72 6f 20 70 61 |IC is a |macro pa|
|00003a10| 63 6b 61 67 65 20 65 78 | 74 65 6e 64 69 6e 67 20 |ckage ex|tending |
|00003a20| 74 68 65 20 70 69 63 74 | 75 72 65 20 65 6e 76 69 |the pict|ure envi|
|00003a30| 72 6f 6e 6d 65 6e 74 20 | 6f 66 20 5c 4c 61 54 65 |ronment |of \LaTe|
|00003a40| 58 2e 0a 49 66 20 79 6f | 75 20 68 61 76 65 20 74 |X..If yo|u have t|
|00003a50| 68 65 20 45 50 49 43 20 | 6f 72 20 45 45 50 49 43 |he EPIC |or EEPIC|
|00003a60| 20 6d 61 63 72 6f 73 2c | 20 61 6e 64 20 79 6f 75 | macros,| and you|
|00003a70| 72 20 7b 5c 74 74 20 64 | 76 69 7d 20 74 72 61 6e |r {\tt d|vi} tran|
|00003a80| 73 6c 61 74 6f 72 0a 73 | 75 70 70 6f 72 74 73 20 |slator.s|upports |
|00003a90| 74 68 65 20 7b 5c 65 6d | 20 74 70 69 63 5c 2f 7d |the {\em| tpic\/}|
|00003aa0| 20 5c 76 65 72 62 2b 5c | 73 70 65 63 69 61 6c 2b | \verb+\|special+|
|00003ab0| 73 2c 20 74 68 65 6e 20 | 79 6f 75 20 63 61 6e 20 |s, then |you can |
|00003ac0| 73 61 76 65 20 5c 4c 61 | 54 65 58 5c 0a 6d 65 6d |save \La|TeX\.mem|
|00003ad0| 6f 72 79 2e 20 20 57 69 | 74 68 20 45 45 50 49 43 |ory. Wi|th EEPIC|
|00003ae0| 20 70 69 63 74 75 72 65 | 73 2c 20 74 68 65 20 7b | picture|s, the {|
|00003af0| 5c 74 74 20 70 6c 6f 74 | 2e 74 65 78 7d 20 66 69 |\tt plot|.tex} fi|
|00003b00| 6c 65 20 77 69 6c 6c 20 | 62 65 20 73 6d 61 6c 6c |le will |be small|
|00003b10| 65 72 2c 0a 5c 4c 61 54 | 65 58 5c 20 77 69 6c 6c |er,.\LaT|eX\ will|
|00003b20| 20 72 75 6e 20 6d 75 63 | 68 20 66 61 73 74 65 72 | run muc|h faster|
|00003b30| 20 28 61 6e 64 20 6e 65 | 65 64 20 6d 75 63 68 20 | (and ne|ed much |
|00003b40| 6c 65 73 73 20 6d 65 6d | 6f 72 79 29 2c 20 61 6e |less mem|ory), an|
|00003b50| 64 20 74 68 65 20 7b 5c | 74 74 0a 64 76 69 7d 20 |d the {\|tt.dvi} |
|00003b60| 66 69 6c 65 20 77 69 6c | 6c 20 62 65 20 73 6d 61 |file wil|l be sma|
|00003b70| 6c 6c 65 72 2e 20 54 68 | 65 20 71 75 61 6c 69 74 |ller. Th|e qualit|
|00003b80| 79 20 6f 66 20 74 68 65 | 20 6f 75 74 70 75 74 20 |y of the| output |
|00003b90| 69 73 20 61 62 6f 75 74 | 20 74 68 65 0a 73 61 6d |is about| the.sam|
|00003ba0| 65 2e 20 49 66 20 79 6f | 75 20 63 68 61 6e 67 65 |e. If yo|u change|
|00003bb0| 20 74 68 65 20 73 6f 75 | 72 63 65 2c 20 79 6f 75 | the sou|rce, you|
|00003bc0| 20 63 61 6e 20 67 65 6e | 65 72 61 74 65 20 73 6f | can gen|erate so|
|00003bd0| 6d 65 20 6d 6f 72 65 20 | 69 6e 74 65 72 65 73 74 |me more |interest|
|00003be0| 69 6e 67 0a 6c 69 6e 65 | 20 73 74 79 6c 65 73 2e |ing.line| styles.|
|00003bf0| 0a 0a 54 6f 20 75 73 65 | 20 45 45 50 49 43 2c 20 |..To use| EEPIC, |
|00003c00| 73 65 74 20 47 4e 55 50 | 4c 4f 54 27 73 20 74 65 |set GNUP|LOT's te|
|00003c10| 72 6d 69 6e 61 6c 20 74 | 79 70 65 20 74 6f 20 7b |rminal t|ype to {|
|00003c20| 5c 74 74 20 65 65 70 69 | 63 7d 20 69 6e 73 74 65 |\tt eepi|c} inste|
|00003c30| 61 64 20 6f 66 0a 7b 5c | 74 74 20 6c 61 74 65 78 |ad of.{\|tt latex|
|00003c40| 7d 2c 20 61 6e 64 20 75 | 73 65 20 47 4e 55 50 4c |}, and u|se GNUPL|
|00003c50| 4f 54 20 61 73 20 62 65 | 66 6f 72 65 2e 20 54 68 |OT as be|fore. Th|
|00003c60| 65 20 6c 69 6e 65 20 73 | 74 79 6c 65 73 20 77 69 |e line s|tyles wi|
|00003c70| 6c 6c 20 63 68 61 6e 67 | 65 2e 0a 49 6e 63 6c 75 |ll chang|e..Inclu|
|00003c80| 64 65 20 74 68 65 20 66 | 69 6c 65 20 7b 5c 74 74 |de the f|ile {\tt|
|00003c90| 20 70 6c 6f 74 2e 74 65 | 78 7d 20 69 6e 20 79 6f | plot.te|x} in yo|
|00003ca0| 75 72 20 64 6f 63 75 6d | 65 6e 74 20 61 73 20 62 |ur docum|ent as b|
|00003cb0| 65 66 6f 72 65 2c 20 61 | 6c 6f 6e 67 20 77 69 74 |efore, a|long wit|
|00003cc0| 68 0a 74 68 65 20 64 6f | 63 75 6d 65 6e 74 20 73 |h.the do|cument s|
|00003cd0| 74 79 6c 65 20 6f 70 74 | 69 6f 6e 73 20 7b 5c 74 |tyle opt|ions {\t|
|00003ce0| 74 20 5b 65 70 69 63 2c | 65 65 70 69 63 5d 7d 2e |t [epic,|eepic]}.|
|00003cf0| 0a 0a 5c 73 65 63 74 69 | 6f 6e 7b 46 6f 72 20 46 |..\secti|on{For F|
|00003d00| 6f 72 6d 65 72 20 47 6e | 75 5c 54 65 58 5c 20 55 |ormer Gn|u\TeX\ U|
|00003d10| 73 65 72 73 7d 0a 5c 6c | 61 62 65 6c 7b 6f 6c 64 |sers}.\l|abel{old|
|00003d20| 75 73 65 72 73 7d 0a 0a | 46 6f 72 6d 65 72 20 47 |users}..|Former G|
|00003d30| 6e 75 5c 54 65 58 5c 20 | 75 73 65 72 73 20 6d 61 |nu\TeX\ |users ma|
|00003d40| 79 20 62 65 20 70 6c 65 | 61 73 65 64 20 77 69 74 |y be ple|ased wit|
|00003d50| 68 20 6d 61 6e 79 20 6f | 66 20 74 68 65 20 6e 65 |h many o|f the ne|
|00003d60| 77 20 66 65 61 74 75 72 | 65 73 0a 28 6d 61 6e 79 |w featur|es.(many|
|00003d70| 20 69 6e 73 70 69 72 65 | 64 20 62 79 20 79 6f 75 | inspire|d by you|
|00003d80| 72 20 73 75 67 67 65 73 | 74 69 6f 6e 73 21 29 2c |r sugges|tions!),|
|00003d90| 20 62 75 74 20 77 69 6c | 6c 20 61 6c 73 6f 20 66 | but wil|l also f|
|00003da0| 69 6e 64 20 6d 61 6e 79 | 20 63 68 61 6e 67 65 73 |ind many| changes|
|00003db0| 2e 0a 47 4e 55 50 4c 4f | 54 20 77 69 6c 6c 20 7b |..GNUPLO|T will {|
|00003dc0| 5c 65 6d 20 6e 6f 74 5c | 2f 7d 20 72 75 6e 20 61 |\em not\|/} run a|
|00003dd0| 6c 6c 20 47 6e 75 5c 54 | 65 58 5c 20 69 6e 70 75 |ll Gnu\T|eX\ inpu|
|00003de0| 74 20 66 69 6c 65 73 20 | 75 6e 63 68 61 6e 67 65 |t files |unchange|
|00003df0| 64 2e 0a 53 65 76 65 72 | 61 6c 20 47 6e 75 5c 54 |d..Sever|al Gnu\T|
|00003e00| 65 58 5c 20 66 65 61 74 | 75 72 65 73 20 77 65 72 |eX\ feat|ures wer|
|00003e10| 65 20 6e 6f 74 20 69 6e | 63 6c 75 64 65 64 20 69 |e not in|cluded i|
|00003e20| 6e 20 47 4e 55 50 4c 4f | 54 20 62 65 63 61 75 73 |n GNUPLO|T becaus|
|00003e30| 65 20 74 68 65 79 0a 77 | 65 72 65 20 73 70 65 63 |e they.w|ere spec|
|00003e40| 69 66 69 63 20 74 6f 20 | 74 68 65 20 5c 4c 61 54 |ific to |the \LaT|
|00003e50| 65 58 5c 20 64 72 69 76 | 65 72 2e 20 49 20 65 6e |eX\ driv|er. I en|
|00003e60| 63 6f 75 72 61 67 65 20 | 79 6f 75 20 74 6f 20 75 |courage |you to u|
|00003e70| 73 65 20 74 68 65 20 6e | 65 77 65 72 0a 47 4e 55 |se the n|ewer.GNU|
|00003e80| 50 4c 4f 54 2e 20 20 41 | 20 74 72 61 6e 73 6c 61 |PLOT. A| transla|
|00003e90| 74 6f 72 20 69 73 20 61 | 76 61 69 6c 61 62 6c 65 |tor is a|vailable|
|00003ea0| 20 74 68 61 74 20 61 74 | 74 65 6d 70 74 73 20 74 | that at|tempts t|
|00003eb0| 6f 20 74 72 61 6e 73 6c | 61 74 65 20 79 6f 75 72 |o transl|ate your|
|00003ec0| 0a 6f 6c 64 20 47 6e 75 | 5c 54 65 58 5c 20 31 2e |.old Gnu|\TeX\ 1.|
|00003ed0| 36 20 69 6e 70 75 74 20 | 66 69 6c 65 73 20 69 6e |6 input |files in|
|00003ee0| 74 6f 20 47 4e 55 50 4c | 4f 54 20 33 2e 30 20 66 |to GNUPL|OT 3.0 f|
|00003ef0| 69 6c 65 73 2e 20 59 6f | 75 20 63 61 6e 20 66 74 |iles. Yo|u can ft|
|00003f00| 70 20 69 74 0a 66 72 6f | 6d 20 5c 76 65 72 62 2b |p it.fro|m \verb+|
|00003f10| 63 73 2e 64 75 6b 65 2e | 65 64 75 2b 20 61 73 20 |cs.duke.|edu+ as |
|00003f20| 5c 76 65 72 62 2b 64 69 | 73 74 2f 73 6f 75 72 63 |\verb+di|st/sourc|
|00003f30| 65 73 2f 67 6e 75 70 6c | 6f 74 2f 67 6e 75 74 32 |es/gnupl|ot/gnut2|
|00003f40| 70 2e 74 61 72 2e 5a 2b | 2e 0a 54 68 69 73 20 66 |p.tar.Z+|..This f|
|00003f50| 69 6c 65 20 61 6c 73 6f | 20 63 6f 6e 74 61 69 6e |ile also| contain|
|00003f60| 73 20 64 69 72 65 63 74 | 69 6f 6e 73 20 61 6e 64 |s direct|ions and|
|00003f70| 20 61 20 6c 69 73 74 20 | 6f 66 20 63 68 61 6e 67 | a list |of chang|
|00003f80| 65 73 20 66 72 6f 6d 20 | 47 6e 75 5c 54 65 58 5c |es from |Gnu\TeX\|
|00003f90| 0a 74 6f 20 47 4e 55 50 | 4c 4f 54 2e 0a 0a 5c 73 |.to GNUP|LOT...\s|
|00003fa0| 65 63 74 69 6f 6e 7b 43 | 6f 6e 74 61 63 74 7d 0a |ection{C|ontact}.|
|00003fb0| 46 6f 72 20 67 65 6e 65 | 72 61 6c 20 47 4e 55 50 |For gene|ral GNUP|
|00003fc0| 4c 4f 54 20 71 75 65 73 | 74 69 6f 6e 73 2c 20 73 |LOT ques|tions, s|
|00003fd0| 65 6e 64 20 6d 61 69 6c | 20 74 6f 20 74 68 65 20 |end mail| to the |
|00003fe0| 47 4e 55 50 4c 4f 54 20 | 6d 61 69 6c 69 6e 67 20 |GNUPLOT |mailing |
|00003ff0| 6c 69 73 74 0a 28 5c 76 | 65 72 62 2b 69 6e 66 6f |list.(\v|erb+info|
|00004000| 2d 67 6e 75 70 6c 6f 74 | 40 64 61 72 74 6d 6f 75 |-gnuplot|@dartmou|
|00004010| 74 68 2e 65 64 75 2b 29 | 20 6f 72 20 70 6f 73 74 |th.edu+)| or post|
|00004020| 20 74 6f 20 74 68 65 20 | 47 4e 55 50 4c 4f 54 20 | to the |GNUPLOT |
|00004030| 6e 65 77 73 67 72 6f 75 | 70 0a 28 5c 76 65 72 62 |newsgrou|p.(\verb|
|00004040| 2b 63 6f 6d 70 2e 67 72 | 61 70 68 69 63 73 2e 61 |+comp.gr|aphics.a|
|00004050| 70 70 73 2e 67 6e 75 70 | 6c 6f 74 2b 29 2e 0a 0a |pps.gnup|lot+)...|
|00004060| 5c 65 6e 64 7b 64 6f 63 | 75 6d 65 6e 74 7d 0a |\end{doc|ument}. |
+--------+-------------------------+-------------------------+--------+--------+